|
Do you have a library/routine to read and write the image ? If you have a bitmap in memory it is quite simple to convert the RGB values in greyscale. You could for example take the average value of each pixels R G and B values (not very accurate, but very simple and fast) or use a more advanced method that tries to figure out the luminosity of the pixel. (think pythagoras' equation)
|