GdPicture14 Namespace / GdPictureImaging Class / TwainGetAvailableCompressionCount Method

In This Topic
TwainGetAvailableCompressionCount Method (GdPictureImaging)
In This Topic
Returns the number of available compression values which can be used by the opened source in its current configuration for file transfer mode.
Public Function TwainGetAvailableCompressionCount() As Integer
public int TwainGetAvailableCompressionCount()
public function TwainGetAvailableCompressionCount(): Integer; 
public function TwainGetAvailableCompressionCount() : int;
public: int TwainGetAvailableCompressionCount(); 
int TwainGetAvailableCompressionCount(); 

Return Value

If Success, non zero: The number of available compression values. Else 0 if fail. Use TwainGetLastResultCode() and TwainGetLastConditionCode() methods for diagnosing the error.
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