GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / TwainGetAvailableImageFileFormatNo Method
Index of the available file format value. Must be a value between 1 and TwainGetAvailableImageFileFormatCount() returned value.





In This Topic
TwainGetAvailableImageFileFormatNo Method (GdPictureImaging)
In This Topic
Returns an available image file format value which can be used by the opened source in its current configuration for file transfer mode.
Syntax
'Declaration
 
Public Function TwainGetAvailableImageFileFormatNo( _
   ByVal Number As Integer _
) As TwainImageFileFormats
public TwainImageFileFormats TwainGetAvailableImageFileFormatNo( 
   int Number
)
public function TwainGetAvailableImageFileFormatNo( 
    Number: Integer
): TwainImageFileFormats; 
public function TwainGetAvailableImageFileFormatNo( 
   Number : int
) : TwainImageFileFormats;
public: TwainImageFileFormats TwainGetAvailableImageFileFormatNo( 
   int Number
) 
public:
TwainImageFileFormats TwainGetAvailableImageFileFormatNo( 
   int Number
) 

Parameters

Number
Index of the available file format value. Must be a value between 1 and TwainGetAvailableImageFileFormatCount() returned value.

Return Value

If fail, returns -1 else if success, The selected file format value. A member of the TwainImageFileFormats enumeration.
Remarks
Before using this method check that the TWAIN state is >= 4 (TWAIN_SOURCE_OPEN) To get the TWAIN state, use the TwainGetState() method.
See Also