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-



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



Other Threads

1. AVRCP FF/RWD in Eclair

Hi All,
Is any one tested the Fast forward and rewind using BT headset (AVRCP
FF/RWD).
Is this feature supported?


Regards
Bheemsen

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Handling "Key Press" from Soft Keyboard in EditText

Hi,

I'm trying to handle the key-press event (OnKeyListener). I know that
doesn't work

3. Changing orientation from portrait to landscape

4. updating listview items

5. Extend a button and implement Parcelable

6. fragmentation

7. left scrollbar