Accusoft TwainPRO 8
ICompression Property
See Also  Send comments on this topic.
AccusoftTwainPro8 ActiveX DLL > TwainPro Object : ICompression Property

Glossary Item Box

Description

Gets the compression format of the current image.

Property Type

Read-only property

Syntax

Visual Basic
Public Property ICompression As Long

Return Type

A long value which represents the compression format of the current image.

Remarks

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_NONE (0) No Compression, TWCP_NONE means that the image is in an uncompressed DIB format and should be accessed through the hDIB property.
  • 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.

See Also

©2013. Accusoft Corporation. All Rights Reserved.