• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

image question

amey77

Lurker
I have a image of size 350*350 , now i want to scale or resize it to smaller size say (100dp * 100dp) and place it in ImageView,, but when i do so in code, image is getting distorted...i want it to maintain its same quality , but it is getting distorted.
I tried to scale it using Bitmap.createSacledBitmap, but didnt helped
Please suggest.
 
Hi amey77

Welcome to the Forum...

I have moved your post to the Computers and IT section to hopefully get you a better answer :)

Please feel free to place another thread in the Introductions Forum with information about yourself for the team

Cheers
 
For the sake of clarity, do you need to do this on your Android device, without help from a computer?

As you probably already know, simple picture editing software like MS Paint (that comes with Windows) can do this easily.

I regret that I can't help you with the class that you mentioned. Maybe this example could help you. Notice that both H and V values must be defined.
 
Back
Top Bottom