Hi,
I have the following code which I tried to build a Bitmap from an
input stream and I want my output bitmap to be 20 x 20:
BitmapFactory.Options opts = new BitmapFactory.Options();
opts.outHeight = 20;
opts.outWidth = 20;
InputStream stream = // an input stream to my image
Bitmap bm = BitmapFactory.decodeStream(stream, null, opts);
But when I tried it, I do get a bitmap from the inputstream, but it
does not scale it to 20x20 which I specified in the
BitmapFactory.Options.
Can you please tell me what am I missing?
Thank you.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---