Example-VB | Example-VC++ |
Returns compression option information for the image specified in the Image property, and the page specified in the Page property.
Ö | Imaging for Windows Professional Edition V1.0, V1.1, and V2.0 |
Ö | Imaging for Windows 95 and 98 |
Ö | Imaging for Windows NT 4.0 |
Image Edit control
object.CompressionInfo
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 |
Image files with compression types other than JPEG and LZW can have CompressionInfo values between 1 and 63, in any combination. Image files with the LZW compression type can have a CompressionInfo value of 8. 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.