Documentformat corruption
Posted: Wed Mar 20, 2013 9:19 pm
I have a static .net class library in which I open images and make multiple calls. On image open, the caller is return the GDPicture image id and it passes that into any subsequent calls to the library. Normally this works great. However...
If I open a multi paage tiff, the DocumentFormat is correctly reported and TiffIsMultiPage reports true. On subsequent calls to my library I do a TiffSelectPage. When selecting page one, all is ok. When I select page two, three etc it fails and the GdPictureStatus return is "UnsupportedImageFormat". When I check the image format with a call to GetImageFormat it reports "DocumentFormatUNKOWN"
Any insight would be greatly appreciated.
Thanks,
Jason
If I open a multi paage tiff, the DocumentFormat is correctly reported and TiffIsMultiPage reports true. On subsequent calls to my library I do a TiffSelectPage. When selecting page one, all is ok. When I select page two, three etc it fails and the GdPictureStatus return is "UnsupportedImageFormat". When I check the image format with a call to GetImageFormat it reports "DocumentFormatUNKOWN"
Any insight would be greatly appreciated.
Thanks,
Jason