GdPicture.NET Reference Guide
TwainGetBrightness Method (GdPictureImaging)





GdPicture14 Namespace > GdPictureImaging Class : TwainGetBrightness Method
Returns the current brightness.
Syntax
'Declaration
 
Public Function TwainGetBrightness() As Integer
public int TwainGetBrightness()
public function TwainGetBrightness(): Integer; 
public function TwainGetBrightness() : int;
public: int TwainGetBrightness(); 
public:
int TwainGetBrightness(); 

Return Value

If success: The TWAIN standard *says* that the range for this cap is -1000 ... +1000. If fail, Returns -99999 -> 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

Reference

GdPictureImaging Class
GdPictureImaging Members
TwainGetState Method
TwainGetLastConditionCode Method
TwainGetLastResultCode Method