GdPicture.NET Reference Guide
TwainSetNoiseFilter Method (GdPictureImaging)





GdPicture14 Namespace > GdPictureImaging Class : TwainSetNoiseFilter Method
The noise filter mode. A member of the TwainNoiseFilterMode enumeration.
Tries to set the current algorithm used to remove noise for the selected twain source.
Syntax
'Declaration
 
Public Function TwainSetNoiseFilter( _
   ByVal NoiseFilter As TwainNoiseFilterMode _
) As Boolean
public bool TwainSetNoiseFilter( 
   TwainNoiseFilterMode NoiseFilter
)
public function TwainSetNoiseFilter( 
    NoiseFilter: TwainNoiseFilterMode
): Boolean; 
public function TwainSetNoiseFilter( 
   NoiseFilter : TwainNoiseFilterMode
) : boolean;
public: bool TwainSetNoiseFilter( 
   TwainNoiseFilterMode NoiseFilter
) 
public:
bool TwainSetNoiseFilter( 
   TwainNoiseFilterMode NoiseFilter
) 

Parameters

NoiseFilter
The noise filter mode. A member of the TwainNoiseFilterMode enumeration.

Return Value

TRUE if success, FALSE otherwise -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() methods for diagnosing the error.
Remarks
Before using this method check that the TWAIN state is TWAIN_SOURCE_OPEN (4) To get the TWAIN state, use the TwainGetState() method.
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members
TwainGetState Method
TwainIsNoiseFilterAvailable Method
TwainGetNoiseFilter Method