You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > TWAIN Features > TwainSetGamma Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.TwainSetGamma Method

Tries to set the current gamma correction value for the selected twain source.

C#
public Boolean TwainSetGamma(
    Double Gamma
);
Visual Basic
Public Function TwainSetGamma(
    ByVal Gamma As Double
) As Boolean
Parameters
Parameters 
Description 
Gamma 
Gamma correction value for the image data. Default value is 2.2 
Returns

TRUE if success, FALSE otherwise -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() functions for diagnosing the error.

Before using this function check that the TWAIN state is TWAIN_SOURCE_OPEN (4) 

To get the TWAIN state, use the TwainGetState() function.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.