GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureImaging Class / TwainSetAutomaticBorderDetection Method
True to enable automatic border detection, else False.





In This Topic
TwainSetAutomaticBorderDetection Method (GdPictureImaging)
In This Topic
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).
Syntax
'Declaration
 
Public Function TwainSetAutomaticBorderDetection( _
   ByVal AutoBorderDetect As Boolean _
) As Boolean
public bool TwainSetAutomaticBorderDetection( 
   bool AutoBorderDetect
)
public function TwainSetAutomaticBorderDetection( 
    AutoBorderDetect: Boolean
): Boolean; 
public function TwainSetAutomaticBorderDetection( 
   AutoBorderDetect : boolean
) : boolean;
public: bool TwainSetAutomaticBorderDetection( 
   bool AutoBorderDetect
) 
public:
bool TwainSetAutomaticBorderDetection( 
   bool AutoBorderDetect
) 

Parameters

AutoBorderDetect
True to enable automatic border detection, 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