CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    Mar 2003
    Posts
    2

    [LibTIFF] Reading TIFF tags

    Hello !!

    I have the following problem: I have difficulties reading tags from a TIFF file using the TIFFGetField() function. I can read without problems the TIFFTAG_IMAGEWIDTH, TIFFTAG_IMAGELENGTH, TIFFTAG_BITSPERSAMPLE, etc... tags, but I can't retrieve the TIFFTAG_STRIPOFFSETS tag. For example, when I try to read this tag, I get the value 3146512, when it should return 2000. What is odd, is that when I use the version 3.5.7 of LibTIFF, I get 3146512, and with the version 3.5.6 beta I get 1265600... and when I use fseek() + fread() I can easily retrieve the value I'm looking for.

    Does anyone know what's happening here ? What am I doing wrong ??? I'd be very happy if someone has an idea to solve my problem, as I am quite lost right now.

    Thanks
    Last edited by Mournblade; March 10th, 2003 at 10:07 AM.

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