Bitmap Confusion Android

Posted by Farhan on Stack Overflow See other posts from Stack Overflow or by Farhan
Published on 2011-11-21T09:43:33Z Indexed on 2011/11/21 9:50 UTC
Read the original article Hit count: 195

Filed under:
|
|

I am getting an image from gallery in onActivityResult() through intent.getdata().

Now i get the data and set it to a bitmap, its size is 716x716 and its setting to full screen. (ImageView's width and height is set to wrap content). Now i created another bitmap after scaling the original through Bitmap.CreateScaledBitmap(orgBitmap,30,30,false);

After this, i make sure these things(width,height n size) and they happen as they should be but the problem is that the image is still taking the full screen... rather it should only take 30dp x 30dp.

Anyone have an idea what might be the problem??? Thanx

© Stack Overflow or respective owner

Related posts about android

Related posts about bitmap