AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
September 2003

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2003.09.17 22:14 "is image tiled or striped?", by Pushkar Pradhan
2003.09.17 22:39 "is image tiled or striped?", by Frank Warmerdam

2003.09.17 22:14 "is image tiled or striped?", by Pushkar Pradhan

I want to check whether an image is tiled or striped? Is there a function to
check this in libtiff?

When I do
  TIFFGetField(tif, TIFFTAG_TILEWIDTH, &tileWidth);
  TIFFGetField(tif, TIFFTAG_TILELENGTH, &tileLength);
They return very big nos. (1075531856, 1075536024) but not a -1 etc.

Maybe I could do a check:
if (tileLength > 1024 || tileWidth > 1024)
/* This is a striped image */

But I don't know whether that's guaranteed to be such a big +ve no. or -ve
no.

So can somebody advise what's the most appropriate way to check this?
Pushkar Pradhan