Saturday, December 3, 2011

[android-developers] How to draw pixels?

Hi,

I want to draw an image from bytes. E.g. I have a byte "01111010", a
black pixel for a 0, a white pixel for a 1, then I need draw an 8
pixels line "black white white white white black white black white" on
the screen.

I have about 3000 bytes (30 bytes per line)to draw an image, and I
need to update the image frequently.

Could you give any suggestion? Is Bitmap.createBitmap from colors
array applicable?

Android 3.2

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate