Accusoft TwainPRO 9
SaveSourceCompressedImageToHandle Method
The 32-bit handle to which the file will be saved.
Description
Saves the Source-compressed image to a handle.
Syntax
Visual Basic
Public Sub SaveSourceCompressedImageToHandle( _
   ByRef vVal As Long _
) 
Parameters
vVal
The 32-bit handle to which the file will be saved.
Remarks

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

All other compression modes are unsupported.
See Also

TwainPro Object  | TwainPro Members

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback