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

If this option is available on opened source, try to enable or disable the barcode detection.

C#
public Boolean TwainSetBarcodeDetection(
    Boolean bBarcodeDetection
);
Visual Basic
Public Function TwainSetBarcodeDetection(
    ByVal bBarcodeDetection As Boolean
) As Boolean
Parameters
Parameters 
Description 
bBarcodeDetection 
Boolean. True to enable barcode detection, else False.  
Returns

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