CompressionInfo Property

Returns compression option information for the image specified in the Image property, and the page specified in the Page property.

Applies To

Image Edit control

Syntax

object.CompressionInfo

Data Type

Long

Property settings are expressed using the following bit-wise values:

Setting

Description

Notes

0

No compression options set.

Applicable only to uncompressed image files

1

EOL -- Include/expect End Of Line. Each line is terminated with a standard end-of-line bit.

Not used for JPEG compression

2

Packed Lines -- Byte-align new lines.

Not used for JPEG compression

4

Prefixed EOL -- Include/expect, prefixed End Of Line. Each strip of data is prefixed by a standard end-of-line bit sequence.

Not used for JPEG compression

8

Compressed LTR -- Compressed bit order, Left-To-Right. The bit order for the compressed data is the most significant bit to the least significant bit.

Not used for JPEG compression

16

Expand LTR -- Expanded bit order, Left-To-Right. The bit order for the expanded data is the most significant bit to the least significant bit.

Not used for JPEG compression

32

Negate -- Invert black and white on expansion. Indicates the setting of the Photometric Interpretation field of a TIFF file.

Not used for JPEG compression

64

High Compression/High Quality

Used for JPEG compression only

128

High Compression/Medium Quality

Used for JPEG compression only

256

High Compression/Low Quality

Used for JPEG compression only

512

Medium Compression/High Quality

Used for JPEG compression only

1024

Medium Compression/Medium Quality

Used for JPEG compression only

2048

Medium Compression/Low Quality

Used for JPEG compression only

4096

Low Compression/High Quality

Used for JPEG compression only

8192

Low Compression/Medium Quality

Used for JPEG compression only

16384

Low Compression/Low Quality

Used for JPEG compression only


Remarks

Image files with compression types other than JPEG can have CompressionInfo values between 1 and 63, in any combination. Image files with the JPEG compression type can have only one specific value between 64 and 16384 (as indicated in the preceding list).

The CompressionInfo value is independent of an image being displayed. If the image specified in the Image and Page properties is being displayed, the value indicates the compression of the displayed image. If the image specified in the Image and Page properties is not being displayed, the value indicates the compression of the image specified in the Image property.

Available at run-time as read-only.

See Also

Compression topics in Imaging Concepts

CompressionType property

Image property

Page property

SaveAs method