Accusoft TwainPRO 9
SaveSourceCompressedImageToFile Method
A string representation of a legal file name (path) to which the file will be saved.
Description
Saves the Source-compressed image as a file given a path and file name.
Syntax
Visual Basic
Public Sub SaveSourceCompressedImageToFile( _
   ByVal FileName As String _
) 
Parameters
FileName
A string representation of a legal file name (path) 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

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback