GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / TwainSetAutomaticColor Method
True to enable autoscan, else False.





In This Topic
TwainSetAutomaticColor Method (GdPictureImaging)
In This Topic
Tries to enable or disable the automatic color detection capability.
Syntax
'Declaration
 
Public Function TwainSetAutomaticColor( _
   ByVal AutomaticColor As Boolean _
) As Boolean
public bool TwainSetAutomaticColor( 
   bool AutomaticColor
)
public function TwainSetAutomaticColor( 
    AutomaticColor: Boolean
): Boolean; 
public function TwainSetAutomaticColor( 
   AutomaticColor : boolean
) : boolean;
public: bool TwainSetAutomaticColor( 
   bool AutomaticColor
) 
public:
bool TwainSetAutomaticColor( 
   bool AutomaticColor
) 

Parameters

AutomaticColor
True to enable autoscan, 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