AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
January 2004

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2004.01.15 17:16 "How to determine number of colors in the colormap", by Bill Cassanova
2004.01.15 18:44 "Re: How to determine number of colors in the colormap", by Joris Van Damme
2004.01.15 18:59 "Re: How to determine number of colors in the colormap", by Bill Cassanova
2004.01.15 19:50 "Re: How to determine number of colors in the colormap", by Joris Van Damme
2004.01.15 20:14 "Re: How to determine number of colors in the colormap", by Bill Cassanova
2004.01.15 21:32 "Re: How to determine number of colors in the colormap", by Joris Van Damme

2004.01.15 20:14 "Re: 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.