| 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 |
Thread2004.01.14 17:26 "Re: COLORMAP and byte padding", by Andy CaveI really wouldn't do that. The 'solution' of dividing by 256 is far more accurate. With 256: 0 to 255 -> 0, 256 to 511 -> 1, ... 65280 to 65535 ->255. This gives an even map of 256 values down to each resultant value. With 257: 0 to 256 -> 0, 257 to 513 -> 2, ... 65278 to 65534 -> 254 65535 ->255. NOT an even spread. _andy. |
|||||||