| 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 |
Thread2006.10.14 14:53 "Re: SamplesPerPixel is 0 when loading image", by Anurag Singh> > But why are you calling this function TIFFGetFieldDefaulted(tif, > > TIFFTAG_SAMPLESPERPIXEL, &samples_per_pixel) to know about sampleperpixel. > > Because that tag may be omitted (default value is 1) - see spec. yeah . i have seen spec, but we are using libtiif here, so we have to see this function only int TIFFDefaultDirectory(TIFF* tif), Act the point is this libtiff take care of it, if tag is not present then it always return default value for important tags such as for samplesperpixel. If you don't believe then you can check it. Anurag Singh |
|||||||