Click to See Complete Forum and Search --> : Tiff file pixel depth


kishorboddu
January 30th, 2007, 06:48 AM
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

Paul McKenzie
January 30th, 2007, 10:49 AM
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.
KishorUse 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