GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / TwainGetCompression Method





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

Return Value

Current file format to use in file transfer mode. A member of the TwainCompression enumeration. TWCP_UNSUPPORTED If it is not supported by the current device (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