GdPicture.NET Reference Guide
TwainSetGamma Method (GdPictureImaging)





GdPicture14 Namespace > GdPictureImaging Class : TwainSetGamma Method
Gamma correction value for the image data. Default value is 2.2.
Tries to set the current gamma correction value for the selected twain source.
Syntax
'Declaration
 
Public Function TwainSetGamma( _
   ByVal Gamma As Double _
) As Boolean
public bool TwainSetGamma( 
   double Gamma
)
public function TwainSetGamma( 
    Gamma: Double
): Boolean; 
public function TwainSetGamma( 
   Gamma : double
) : boolean;
public: bool TwainSetGamma( 
   double Gamma
) 
public:
bool TwainSetGamma( 
   double Gamma
) 

Parameters

Gamma
Gamma correction value for the image data. Default value is 2.2.

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
TwainIsGammaAvailable Method
TwainGetGamma Method