GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / TwainSetThreshold Method
Threshold value between 0 and 255.





In This Topic
TwainSetThreshold Method (GdPictureImaging)
In This Topic
Try to specify 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 TwainSetThreshold( _
   ByVal Threshold As Integer _
) As Boolean
public bool TwainSetThreshold( 
   int Threshold
)
public function TwainSetThreshold( 
    Threshold: Integer
): Boolean; 
public function TwainSetThreshold( 
   Threshold : int
) : boolean;
public: bool TwainSetThreshold( 
   int Threshold
) 
public:
bool TwainSetThreshold( 
   int Threshold
) 

Parameters

Threshold
Threshold value between 0 and 255.

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