Hi Kumar Bibek, Can you suggest some method to pre-scale the bitmap.
Thanks. On Thu, Jun 10, 2010 at 8:24 AM, Kumar Bibek <coomar....@gmail.com> wrote: > One tip to save some memory, pre-scale your bitmaps since it's just 50 > by 50. This would save a lot of memory, and if you are loading real > big images, this can prevent OutOfMemory errors. > > Thanks and Regards, > Kumar Bibek > http://tech-droid.blogspot.com > > On Jun 10, 6:25 am, 楊健 <youken1...@gmail.com> wrote: > > Try this method: > > > > < > http://developer.android.com/reference/android/widget/ImageView.html#...)> > setScaleType( < > http://developer.android.com/reference/android/widget/ImageView.Scale...> > ImageView.ScaleType scaleType) > > > > Controls how the image should be resized or moved to match the size of > this ImageView. > > > > _____ > > > > From: android-developers@googlegroups.com [mailto: > android-develop...@googlegroups.com] On Behalf Of pawan nimje > > Sent: Thursday, June 10, 2010 2:39 AM > > To: Android Developers > > Subject: [android-developers] Placing a bitmap image in ImageView > > > > Hi All, > > > > I have a Bitmap image (bm) and a an ImageView (iv) of 50 by 50 > > > > when i do iv.setImageBitmap(bm) ... only a portion of the entire image is > seen ..How can i see the whole image in the 50 dip by 50 dip ImageView .. > > > > any suggestion will do .. > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > > For more options, visit this group athttp:// > groups.google.com/group/android-developers?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en