I've had this problem if the size of the ImageView doesn't exactly match the dimensions of the bitmap in the file.
String On Sep 5, 2:43 am, nimph <[email protected]> wrote: > I'm trying to load a PNG image into an ImageView using the following > code: > > mImageView.setImageBitmap(BitmapFactory.decodeStream(getClass(). > getResourceAsStream("file_name.png"))); > > The images are displayed just fine, but they are badly pixelated. > > Putting the images in 'res/drawables' works fine, I only see this with > images loaded from the file-system. > > What am I doing wrong? Let me know if you need more info. > > Thanks, --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

