GetPageTypeCompressionType Method

Example-VB Example-VC++

Returns the compression information used by the specified image type. Applications can then request and save this information for future use.

Available With

Ö Imaging for Windows Professional Edition V1.0, V1.1, and V2.0
Ö Imaging for Windows 98
Imaging for Windows 95
Imaging for Windows NT 4.0

Applies To

Image Scan control

Syntax

object.GetPageTypeCompressionType(ImageType)

Arguments

ImageTypeConstants (Integer)

Constant Setting Description

BlackAndWhite1Bit 1 Black and white
Gray4Bit 2 16 shades of gray
Gray8Bit 3 256 shades of gray
ColorPal8Bit 4 256 colors
TrueColor24bitRGB 5 True color (RGB 24 bit)
ColorPal4Bit 6 16 Colors

Return Value

CompTypeConstants (Integer)

Constant Setting Description

Uncompressed 0 uncompressed
CCITTGroup31D 1 CCITT Group 3 1D
CCITTGroup42D 2 CCITT Group 4 2D
TIFFPackbits 4 TIFF Packbits
JPEGCompression 8 JPEG
LZWCompression 21 LZW

Remarks

The information returned by this method can be used as follows.

To maintain the compression options already set in the registry. (The information returned is read but not interpreted.)

To interpret compression information, and then use that information to set explicit compression options during runtime.

An error is returned if the ImageType is invalid.