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

Try to enable or disable autobrightness scanning.

C#
public Boolean TwainSetAutoBrightness(
    Boolean AutoBrightness
);
Visual Basic
Public Function TwainSetAutoBrightness(
    ByVal AutoBrightness As Boolean
) As Boolean
Parameters
Parameters 
Description 
AutoBrightness 
True to enable autobrightness, else False.  
Returns

TRUE if successful, 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.