On Thu, Feb 10, 2011 at 11:02 AM, Mattias Svala <thebra...@gmail.com> wrote:
> I want to create an image programmatically that I will later use in an
> ImageView.

Why not just draw it on-screen? Why create a Bitmap?

> Where do I get a Resources object and what does it do?

getResources() in your activity.

> How do I figure out how many pixels equals X display independent pixels?

DisplayMetrics has the low-level data -- not sure if there is a
convenience method somewhere to do the calculation for you.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.4 Available!

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