AccusoftTwainPro9 ActiveX DLL > TwainPro Object : ICompression Property |
Visual Basic |
---|
Public Property ICompression As Long |
The ICompression property obtains the compression format of the current image or image being acquired. ICompression is available at runtime and is read-only. ICompression is available in the PreScan event and thereafter.
ICompression returns one of the following values:
TWCP_PACKBITS (1) Packbits
TWCP_ GROUP31D (2) Group 3 1D, Follows CCITT spec (no End Of Line)
TWCP_GROUP31DEOL (3) Group 3 1D, Follows CCITT spec (has End Of Line)
TWCP_GROUP32D (4) Group 3 2D, Follows CCITT spec (use cap for K Factor)
TWCP_GROUP4 (5) Group 4, Follows CCITT spec
TWCP_JPEG (6) JPEG, TWCP_JPEG means that the image is in a JPEG format and should be accessed through the hImage property.
Note: All other values mean that the image is in a TIFF format and should be accessed through the hImage property.