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 http://en.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale Regards On Oct 7, 8:48 pm, Ravijadhav <[email protected]> wrote: > 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 <[email protected]> > > > > > > > > > Hi, > > > try > > thishttp://stackoverflow.com/questions/3922172/java-awt-image-bufferedima... > > > Regards > > > On Oct 6, 9:35 pm, Ravijadhav <[email protected]> wrote:> Helllo Everyone, > > > > I am quite stuck at this.. > > > What is the best way to convert an RGB 24 or 32 bit per pixel image > > > to a grayscale 8 bit per pixel image? > > > A working code of the same in android will be much helpful for me.... > > > Thank you... -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

