TwainGetAvailableImageFileFormatNo Method

See Also     Examples     Applies To

Returns an available image file format value which can be used by the opened source in its current configuration for file transfer mode.

Syntax

object.TwainGetAvailableImageFileFormatNo (nNumber)

The TwainGetAvailableImageFileFormatNo syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
nNumber Required. Long. Index of the available file format value. Must be a value between 1 and TwainGetAvailableImageFileFormatCount() returned value.

Returns

Long. If fail, returns -1 else if success, The selected file format value. 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.