Pixelated Image

by nimph » Sat, 05 Sep 2009 00:50:02 GMT


Sponsored Links
 I'm having some problems displaying a PNG in an ImageView.

I am loading the image from the file system via:

     ...
     mImageView.setImageBitmap(BitmapFactory.decodeStream(
             getClass().getResourceAsStream("image_name")));
     ...

The image shows up in the ImageView, but it's pixelated.

If I haven't given enough details, just let me know...

Any ideas?

--~--~---------~--~----~------------~-------~--~----~



Pixelated Image

by Balwinder Kaur (T-Mobile USA) » Sat, 05 Sep 2009 01:55:17 GMT


 And you are sure you have an image of appropriate size ...

Balwinder Kaur
Open Source Development Center
T  Mobile stick together

The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.





--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Pixelated Image

by nimph » Sun, 06 Sep 2009 12:53:29 GMT


 Yep...  If I put the image in the 'res/drawables' directory, all looks
as expected.  I only see this if loading the image from the file-
system.

//

On Sep 4, 1:54pm, "Balwinder Kaur (T-Mobile USA)" <balwinder.k...@t-



--~--~---------~--~----~------------~-------~--~----~