the genration of the thumbnail is ok, no errors, status is OK and image id > 0. But the thumbnail is empty. Showing it in gdviewer or saving it to disk is the same => empty thumbnail. The image itself is displayed normally in gdviewer or other viewers. The version of gdpicture is 10.2.0.30. The image is scanned via memory transfer mode in black&white and saved as tiff with TiffCompressionCCITT4.
Where is the error?
Kind regards,
Dirk
Code: Select all
static void Main(string[] args)
{
GdPicture10.GdPictureImaging gdp = new GdPicture10.GdPictureImaging();
GdPicture10.LicenseManager lm = new GdPicture10.LicenseManager();
lm.RegisterKEY("xxx");
int id = gdp.CreateGdPictureImageFromFile(@"C:\temp\4b5859f9-ad3c-4446-81b8-d3d10b9a9002.tif");
int tid = gdp.CreateThumbnail(id, 150, 220);
gdp.SaveAsTIFF(tid, @"C:\temp\i.Cap plus\test\4b5859f9-ad3c-4446-81b8-d3d10b9a9002.thumb.tif", GdPicture10.TiffCompression.TiffCompressionCCITT4);
gdp.ReleaseGdPictureImage(tid);
gdp.ReleaseGdPictureImage(id);
}