Is there any way to make the toolkit preserve the quality and bit-depth of a loaded image? I am using v10.
Here is a specific scenario:
A document is a multi-page, bitonal tiff at 300 DPI that is compressed via CCITT Group 4 (all pages are the same). After simply loading the tiff and adding a few pixels border to one side, the image is converted into a 128 DPI 24-bit color document and aside from growing a ton in file size, it is now horrible in quality compared to the original.
Code: Select all
iImageId = this._Toolkit.CreateGdPictureImageFromFile(sImage, true);
if (iLeft > 0)
{ oStatus = this._Toolkit.AddBorderLeft(iImageId, iLeft, this._Toolkit.ARGB(255, 255, 255)); }
if (oStatus != GdPicture10.GdPictureStatus.OK)
{ throw new Exception(oStatus.ToString()); }
oStatus = this._Toolkit.TiffSaveMultiPageToFile(iImageId, sFile, this._Toolkit.GetTiffCompression(iImageId));
if (oStatus != GdPicture10.GdPictureStatus.OK)
{ throw new Exception(oStatus.ToString()); }