CompressionInfo Property

Description

Returns this page's compression information. Read-only property.

Usage

ImageFileObject.Pages(pagenumber).CompressionInfo

Data Type

Long

Remarks

The CompressionInfo property settings are:

Setting

Description

1

EOLs (Include/expect EOLs). Not used for JPEG.

2

Packed Lines (Byte align new lines). Not used for JPEG.

4

Prefixed EOLs (Include/expect prefixed EOLs). Not used for JPEG.

8

Compressed_LTR (Compressed bit order left to right). Not used for JPEG.

16

Expanded_LTR (Expand bit order left to right). Not used for JPEG.

32

Negate (Invert black/white on expansion). Not used for JPEG.

64

Hi_Compression/Hi_Quality (JPEG compression only).

128

Hi_Compression/Med_Quality (JPEG compression only).

256

Hi_Compression/Low_Quality (JPEG compression only).

512

Med_Compression/Hi_Quality (JPEG compression only).

1024

Med_Compression/Med_Quality (JPEG compression only).

2048

Med_Compression/Low_Quality (JPEG compression only).

4098

Low_Compression/Hi_Quality (JPEG compression only).

8196

Low_Compression/Med_Quality (JPEG compression only).

16392

Low_Compression/Low_Quality (JPEG compression only).


Example

This example returns the page's compression information.

x = Img.Pages(1).CompressionInfo

Image files that do not have a compression type of JPEG will have a value between 1 and 63. This value will be a combination of the values of 1 to 32. For JPEG files, the value will from 64 to 16384 and will only be one of these values.