[android-developers] Re: Bitmap 32 bitperpixel image to Bitmap 8 bitperpixe image

2011-10-09 Thread gjs
Hi, You can implements the method yourself - Read each 32 or 24bit RGB value, take some sort of average value from each of the R, G B bytes, then store this averaged value in your single grayscale byte. Usually some weighting is applied to the RGB values see

[android-developers] Re: Bitmap 32 bitperpixel image to Bitmap 8 bitperpixe image

2011-10-07 Thread Ravijadhav
Thanks a lot gjs, The only query now i have is that will the same code work in android?? does android support awt and other java 2 classes??? On Oct 7, 10:30 am, gjs garyjamessi...@gmail.com Hi, try thishttp://stackoverflow.com/questions/3922172/java-awt-image-bufferedima... Regards On

[android-developers] Re: Bitmap 32 bitperpixel image to Bitmap 8 bitperpixe image

2011-10-06 Thread gjs
Hi, try this http://stackoverflow.com/questions/3922172/java-awt-image-bufferedimage-24-bit-rgb-to-8-bit-grayscale-conversion-using-custo Regards On Oct 6, 9:35 pm, Ravijadhav jadhr...@gmail.com wrote: Helllo Everyone, I am quite stuck at this.. What is the best way to convert an RGB  24