Hi,
In my application I'm getting the page count with TiffGetPageCount, but when the TIF file opened with CreateGdPictureImageFromFile as read only has only 1 page, the page count returns 0.
Is this an issue?
Before loading I have no other way to know if this is a single page tif, opening for write gives the actual 1 size, but for speed reasons I need to open it as read only.
Thanks in advance.
TiffGetPageCount returns 0 on single page readonly tifs
Re: TiffGetPageCount returns 0 on single page readonly tifs
Hi,
TiffGetPageCount() method is for multipage tiff only. Check reference guide for more details. So, you can consider than 0 results means that your image is a single-page image.
Kind regards,
Loïc
TiffGetPageCount() method is for multipage tiff only. Check reference guide for more details. So, you can consider than 0 results means that your image is a single-page image.
Kind regards,
Loïc
Re: TiffGetPageCount returns 0 on single page readonly tifs
Hi,
I know it's easy to work around this. But I still think it's not the best approach, it should return 1.
Anyway, thanks for the quick answer.
I know it's easy to work around this. But I still think it's not the best approach, it should return 1.
Anyway, thanks for the quick answer.
Who is online
Users browsing this forum: No registered users and 2 guests