ImageGear for .NET
ImageCompression Property
See Also  Send Feedback
ImageGear21.Recognition Assembly > ImageGear.Recognition Namespace > ImGearRecPDFOutputOptions Class : ImageCompression Property




Glossary Item Box

Gets or sets the compression to use for images.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Property Value

ImageGear.Formats.ImGearCompressions enumeration values.

Remarks

This property will determine the compression format of the image that is added to the PDF page when VisibleImage is true. The original image imported into Recognition will be used.

The default value, ImGearCompressions.AUTO, will result in the following automatic compression selection based on the input image's bit depth:

For compression types other than AUTO, the Recognition PDF writer will attempt to convert the original image if needed to make it compatible with the selected compression format. However, this conversion process does not support the binarization of full color, 24 BPP images to black and white, 1 BPP images. If the original input might be a full color image, the CCITT compression types should not be selected as this will cause an exception. Binarization should be performed on the original image, prior to importing it into Recognition, if the PDF output should need it.

If JPEG compression is set here, the compression quality can be adjusted using the global ImageGear filter parameters. The Quality and DecimationType values will be used for JPEG compression of images in the recognition PDF output. All other JPEG filter parameters are ignored. See the JPEG format topic for more information about these parameters. See the Using Filter Control Parameters topic for information on how to set the global filter parameters.

See Also

©2013. Accusoft Corporation. All Rights Reserved.