TwainGetCurrentImageFileFormat Method

See Also     Examples     Applies To

Returns the current image file format used by the selected twain source for file transfer mode.

Syntax

object.TwainGetCurrentImageFileFormat ()

The TwainGetCurrentImageFileFormat syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.

Returns

Long. If fail, -1 : probably not supported by the current device -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() functions for diagnosing the error.
If succes, Current file format to use in file transfer mode. 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

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





© Copyright 2008 GdPicture All rights reserved.
Documentation MAP.