GdPicture.NET.14
GdPicture14 Namespace / GdPictureImaging Class / TwainSetBarcodeDetection Method
bool. True to enable barcode detection, else False.





In This Topic
TwainSetBarcodeDetection Method (GdPictureImaging)
In This Topic
If this option is available on opened source, try to enable or disable the barcode detection.
Syntax
'Declaration
 
Public Function TwainSetBarcodeDetection( _
   ByVal bBarcodeDetection As Boolean _
) As Boolean
public bool TwainSetBarcodeDetection( 
   bool bBarcodeDetection
)
public function TwainSetBarcodeDetection( 
    bBarcodeDetection: Boolean
): Boolean; 
public function TwainSetBarcodeDetection( 
   bBarcodeDetection : boolean
) : boolean;
public: bool TwainSetBarcodeDetection( 
   bool bBarcodeDetection
) 
public:
bool TwainSetBarcodeDetection( 
   bool bBarcodeDetection
) 

Parameters

bBarcodeDetection
bool. True to enable barcode detection, else False.

Return Value

bool. 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