[android-developers] Re: Byte array from bitmap

2009-07-21 Thread migo

ByteArrayOutputStream bos = new ByteArrayOutputStream();
bitmap.compress(CompressFormat.PNG, 0 /*ignored for PNG*/, bos);
byte[] bitmapdata = bos.toByteArray();

On Jul 21, 4:54 am, Sharmila sharmcg...@gmail.com wrote:
 Is it possible to create a byte array from bitmap?How can I do so?
 Thanks,
 Sharmila

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



[android-developers] Re: Byte array from bitmap

2009-07-20 Thread Streets Of Boston

Just read the reference on developer.android.com.

I'll give you a hint :-)

  Bitmap.getPixels( ... )

On Jul 20, 9:54 pm, Sharmila sharmcg...@gmail.com wrote:
 Is it possible to create a byte array from bitmap?How can I do so?
 Thanks,
 Sharmila
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---