|
-
January 30th, 2007, 07:48 AM
#1
Tiff file pixel depth
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
-
January 30th, 2007, 11:49 AM
#2
Re: Tiff file pixel depth
 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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|