In This Topic
GdPicture14 Namespace / GdPictureImaging Class / TwainGetThreshold Method

TwainGetThreshold Method (GdPictureImaging)

In This Topic
Returns the dividing line between black and white. This is the value the Source will use to threshold, if needed, when scanning B&W image.
Syntax
'Declaration
 
Public Function TwainGetThreshold() As Integer
public int TwainGetThreshold()
public function TwainGetThreshold(): Integer; 
public function TwainGetThreshold() : int;
public: int TwainGetThreshold(); 
public:
int TwainGetThreshold(); 

Return Value

Current threshold value between 0 and 255. -1 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