2005.02.10 20:42 "[Tiff] Regarding the decoding of uncompressed GrayScale images.", by Chinku Miandad M

2005.02.10 20:52 "Re: [Tiff] Regarding the decoding of uncompressed GrayScale images.", by Bob Friesenhahn

I need to decode an uncompressed GrayScale image. I am able to read the image data from the image file properly. The "BitsPerSample" value is 8. i.e, one byte per pixel.

How should I interpret that data in order to convert it into RGB data???

By using the same byte value for the R, G and B values, will I be able to get the proper decoded RGB output???

Yes, this works fine.

Bob

======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen