Saving an image as TIFF both direct as via clipboard
Posted: Tue Mar 30, 2010 2:18 pm
I have scanned a document and saving the scanned image as a TIFF file. I also copy the image to the clipboard and creating a new image from the clipboard.
This created image is also saved as TIFF.
Both files hold the same image, but differ in file size (51K vs 915K).
//save scanned image as a TIFF file
oImaging.SaveAsTIFF(imageID, "Test_1_.TIF", TiffCompression.TiffCompressionCCITT4);
//Copy image to clipboard
oImaging.CopyToClipboard(imageID);
//Create image from clipboard data
int tempID = oImaging.CreateGdPictureImageFromClipboard();
//save image as a TIFF file
oImaging.SaveAsTIFF(tempID, "Test_2_.TIF", TiffCompression.TiffCompressionCCITT4);
Test_1_.TIF >>> 51 Kbytes
test_2_.TIF >>> 915 Kbytes
Why is there such a big difference if file size?
eagleman
This created image is also saved as TIFF.
Both files hold the same image, but differ in file size (51K vs 915K).
//save scanned image as a TIFF file
oImaging.SaveAsTIFF(imageID, "Test_1_.TIF", TiffCompression.TiffCompressionCCITT4);
//Copy image to clipboard
oImaging.CopyToClipboard(imageID);
//Create image from clipboard data
int tempID = oImaging.CreateGdPictureImageFromClipboard();
//save image as a TIFF file
oImaging.SaveAsTIFF(tempID, "Test_2_.TIF", TiffCompression.TiffCompressionCCITT4);
Test_1_.TIF >>> 51 Kbytes
test_2_.TIF >>> 915 Kbytes
Why is there such a big difference if file size?
eagleman