AccusoftTwainPro9 ActiveX DLL > TwainPro Object : SaveSourceCompressedImageToHandle64 Method |
Visual Basic |
---|
Public Sub SaveSourceCompressedImageToHandle64( _ ByRef vVal As __int64 _ ) |
Note: Compression must be set for the source first by setting TP_AdvancedCapability.ICAP_COMPRESSION; and TP_AdvancedCapability.ICAP_PIXELTYPE should also be set to a pixel type that supports the compression.
The ICAP_COMPRESSION capability is used to control both the compression mode and, implicitly, the resulting file type.
For the compression modes we currently support, the output file type will be either JPEG or TIFF. If the compression mode is set to TWCP_JPEG, the resulting file type will be JPEG. Otherwise, it will be TIFF.
The following table details the supported compression modes and the implied type of file that TwainPRO will create:
Compression Mode | Output File Type |
TWCP_JPEG | JPEG |
TWCP_GROUP31D | TIFF |
TWCP_GROUP31DEOL | TIFF |
TWCP_GROUP32D | TIFF |
TWCP_GROUP4 | TIFF |
TWCP_PACKBITS | TIFF |