SaveasTiffJPG
Posted: Wed Sep 03, 2008 10:51 am
Hi Loic,
I am using GDPicture Pro 5.6.11 and using the SaveasTiffJPG method. After doing so, GDStat returns 0 (so I am assuming it works right).
However, the saved TIFF file does not open with Microsoft Image Viewer directly. I get an unsupported format error. However, after opening the image with Imagsitix Image Viewer and saving it, the saved tiff file can be opened with Microsoft IMage viewer.
Here's the code snippet:
I am also attaching the multipage.jpg file for your reference. Could you let me know if I am doing anything wrong? TIA.
I am using GDPicture Pro 5.6.11 and using the SaveasTiffJPG method. After doing so, GDStat returns 0 (so I am assuming it works right).
However, the saved TIFF file does not open with Microsoft Image Viewer directly. I get an unsupported format error. However, after opening the image with Imagsitix Image Viewer and saving it, the saved tiff file can be opened with Microsoft IMage viewer.
Here's the code snippet:
Code: Select all
nImageID = Imaging1.CreateImageFromFile(App.Path & "\multipage.jpg")
Imaging1.ConvertTo8BppGrayScale
Imaging1.SetNativeImage (nImageID)
Call Imaging1.SaveAsTIFFjpg(sMultiPageTiffPath)