I think I know what is wrong.... outHeight is output values, not input values.
On Wed, Jul 8, 2009 at 4:11 PM, n179911<[email protected]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---

