Re: Tiff file pixel depth
Quote:
Originally Posted by kishorboddu
Hi,
Can someone help me in finding pixel depth of a tiff image, I know using it with image or bitmap classes, the problem with that is we need to read the image into an object, but the files are of high in size(100+ MB). I need code to read from header of the tiff file.
many thanks in advance.
Kishor
Use the free libtiff library (http://www.remotesensing.org/libtiff/) . Then when you have it set up, open the file and read the TIFFTAG_BITSPERSAMLE and TIFFTAG_SAMPLESPERPIXEL tag values.
Regards,
Paul McKenzie