GdPicture.NET Reference Guide
TwainSetAutoBrightness Method (GdPictureImaging)





GdPicture14 Namespace > GdPictureImaging Class : TwainSetAutoBrightness Method
True to enable autobrightness, else False.
Try to enable or disable autobrightness scanning.
Syntax
'Declaration
 
Public Function TwainSetAutoBrightness( _
   ByVal AutoBrightness As Boolean _
) As Boolean
public bool TwainSetAutoBrightness( 
   bool AutoBrightness
)
public function TwainSetAutoBrightness( 
    AutoBrightness: Boolean
): Boolean; 
public function TwainSetAutoBrightness( 
   AutoBrightness : boolean
) : boolean;
public: bool TwainSetAutoBrightness( 
   bool AutoBrightness
) 
public:
bool TwainSetAutoBrightness( 
   bool AutoBrightness
) 

Parameters

AutoBrightness
True to enable autobrightness, else False.

Return Value

TRUE if successful, 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
TwainIsAutoBrightnessAvailable Method
TwainIsAutoBrightnessEnabled Method