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

If this option is available on opened source, try to enable or disable the automatic border detection. It reduces or removes the border generated around an image by the scanner scanning its own platen (the area not covered by the paper).

C#
public Boolean TwainSetAutomaticBorderDetection(
    Boolean AutoBorderDetect
);
Visual Basic
Public Function TwainSetAutomaticBorderDetection(
    ByVal AutoBorderDetect As Boolean
) As Boolean
Parameters
Parameters 
Description 
AutoBorderDetect 
True to enable automatic border detection, 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.