| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2002.01.16 12:52 "Re: How to interpret 16-bit GrayScale image?", by Marti MariaHi,
This means that this grayscale does use 65535 levels of gray to
store the image. Note than there are devices, like some printers,
that are not limited to 255 or minus of monitors.
You must convert to 8 bits per sample before display. If you don't
care about gamma stuff, simply divide each pixel by 257
One can just do a >> 8 to gain speed if don't care roundup,
but this is not completly accurate, for example:
0x2e9 = 745
745 / 257 = 2.898, rounding = 3
745 >> 8 = 2
Hope this helps.
Marti Maria.
|
|||||||