CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2007
    Posts
    1

    Post 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

  2. #2
    Join Date
    Apr 1999
    Posts
    27,449

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured