AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2000.03.30 11:14 "On 16 bit TIFF palette", by Ivo
2000.03.30 11:37 "Re: On 16 bit TIFF palette", by Peter Nielsen
2000.03.30 17:38 "Re: On 16 bit TIFF palette", by Phillip Crews

2000.03.30 17:38 "Re: On 16 bit TIFF palette", by Phillip Crews

Rule of thumb: When saving the TIFF palette image, always save the r,g,b values (<256) as shifted 8 bits to the left.

Actually, they should be saved as (x<<8)+x so that white is 0xffff rather than 0xff00 (and so that levels are evenly distributed between 0x0000 and 0xffff). Doesn't matter if all readers just shift, but anyone actually working in 48-bit color needs the extra bits.

Kind regards,
Phillip Crews

Cerious Software, Inc.
http://www.thumbsplus.com