Reference Guide
GdPicture14 Namespace / GdPictureImaging Class / TwainGetImageFileFormat Method





In This Topic
    TwainGetImageFileFormat Method (GdPictureImaging)
    In This Topic
    Returns the current image file format used by the selected twain source for file transfer mode.
    Syntax
    'Declaration
     
    
    Public Function TwainGetImageFileFormat() As TwainImageFileFormats
    public TwainImageFileFormats TwainGetImageFileFormat()
    public function TwainGetImageFileFormat(): TwainImageFileFormats; 
    public function TwainGetImageFileFormat() : TwainImageFileFormats;
    public: TwainImageFileFormats TwainGetImageFileFormat(); 
    public:
    TwainImageFileFormats TwainGetImageFileFormat(); 

    Return Value

    If fail, TWFF_UNSUPPORTED : probably not supported by the current device -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() methods for diagnosing the error. If success, Current file format to use in file transfer mode. A member of the GdPicture 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