2004.01.15 17:16 "[Tiff] How to determine number of colors in the colormap", by Bill Cassanova

2004.01.15 20:14 "Re: [Tiff] How to determine number of colors in the colormap", by Bill Cassanova

Ah,,,That makes since. I did a little experiment and anded each of the red, green, and blue values with 0xff to wipe out the high order bits...The values are now in the range of 0 to 255.

One curious note though. If the largest number that could ever exist in a Red or Green or Blue component is 255 why would libtiff have defined the values coming out of a call to TIFFGetField as uint16*?

My only thoughts are maybe libtiff was written with strictly a "C" interface in mind and therefore function overloading would not have been possible. If they coded it for the largest value that would ever be returned from TIFFGetField then I guess uint16 is the right choice.

Thanks for the input.