See Also Examples Applies To
Tries to set the current image file format to use by the selected twain source for file transfer mode.
Syntax
object.TwainSetCurrentImageFileFormat (nImageFileFormat)
The TwainSetCurrentImageFileFormat syntax has these parts:
| Part | Description |
| object | Required. An object expression that evaluates to an object in the Applies To list. |
| nImageFileFormat |
Required. Long. Image file format. Can be: TWFF_TIFF = 0 - Tagged Image File Format. TWFF_PICT = 1 - Macintosh PICT. TWFF_BMP = 2 - Windows Bitmap. TWFF_XBM = 3 - X-Windows Bitmap. TWFF_JFIF = 4 - JPEG File Interchange Format. TWFF_FPX = 5 - Flash Pix. TWFF_TIFFMULTI = 6 - Multi-page tiff file. TWFF_PNG = 7 - Portable Network Graphics. TWFF_SPIFF = 8 - Still Picture Interchange File Format. TWFF_EXIF = 9. TWPT_PDF = 10 TWPT_JPEG2000 = 11 |
Returns
Boolean. True if success, else False -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() functions for diagnosing the error.
Remarks
Before using this function check that the TWAIN state is 4 (TWAIN_SOURCE_OPEN)
To get the TWAIN state, use the TwainGetState() function.
Category
TWAIN Functions