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,
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
2 matches
Mail list logo