Hello!

I want to create an image programmatically that I will later use in an 
ImageView. I was thinking that I can use BitmapDrawable to do this. 
Something like this perhaps?

Bitmap bitmap = Bitmap.createBitmap(100, 100, Bitmap.Config.RGB_565);
BitmapDrawable drawable = new BitmapDrawable(resources, bitmap);

I have tried to figure out how to do this and I have some questions. 

Where do I get a Resources object and what does it do?
How do I figure out how many pixels equals X display independent pixels?

:.:: mattias

-- 
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

Reply via email to