Image file format. A member of the TwainImageFileFormats enumeration.





In This Topic
GdPicture14 Namespace / GdPictureImaging Class / TwainSetImageFileFormat Method

TwainSetImageFileFormat Method (GdPictureImaging)

In This Topic
Tries to set the current image file format to use by the selected twain source for file transfer mode.
Syntax
'Declaration
 
Public Function TwainSetImageFileFormat( _
   ByVal ImageFileFormat As TwainImageFileFormats _
) As Boolean
public bool TwainSetImageFileFormat( 
   TwainImageFileFormats ImageFileFormat
)
public function TwainSetImageFileFormat( 
    ImageFileFormat: TwainImageFileFormats
): Boolean; 
public function TwainSetImageFileFormat( 
   ImageFileFormat : TwainImageFileFormats
) : boolean;
public: bool TwainSetImageFileFormat( 
   TwainImageFileFormats ImageFileFormat
) 
public:
bool TwainSetImageFileFormat( 
   TwainImageFileFormats ImageFileFormat
) 

Parameters

ImageFileFormat
Image file format. A member of the TwainImageFileFormats enumeration.

Return Value

True if success, else False -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() methods for diagnosing the error.
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