Skip to content
GBG Documents & Biometrics Documentation

CBarcode library

The library CBarcode in ScanWex expands the barcode image processing capabilities that were introduced in the ScanW library. This library is capable of analyzing 1D barcode in addition to the 2D PDF417 barcode in the ScanW library.

Detects the data encapsulated in the 1D barcode. The function decodes the barcode and stores the data in the Data1D property. If the function failed to process the barcode, the content of the Data1D property is set to an empty string.

Syntax

Proc1DImage (ImageFileAs String) As Long

Parameters

Parameter Description
ImageFile Empty string (Reserved)

Return Values

Value Description
LICENSE_INVALID Library not initialized with proper license
SLIB_ERR_SCANNER_NOT_ FOUND No attached scanner found
SLIB_ERR_INVALID_SCANNER No scanner attached to the PC
INVALID_INTERNAL_IMAGE Bad internal image (used only when extracting the face image from the image stored in the internal buffer). This value returns if there is no image in the buffer.
BC_ERR_NO_BC_FOUND Could not find 1D barcode printing on the image
BC_ERR_NONE Barcode detected successfully
Property Description
Data1D Returns the content of the recently processed 1D barcode (read-only)
Hair Returns the Hair value in the 2D barcode data (read-only)
Eyes Returns the Eyes value in the 2D barcode data (read-only)
Height Returns the Height value in the 2D barcode data (read-only)
Weight Returns the Weight value in the 2D barcode data (read-only)
Endorsements Returns the Endorsements value in the 2D barcode data (read-only)
Address2 Returns the Address2 value in the 2D barcode data (read-only)
City2 Returns the City2 value in the 2D barcode data (read-only)
State2 Returns the State2 value in the 2D barcode data (read-only)
Zip2 Returns the Zip2 value in the 2D barcode data (read-only)
Using4DigitsYearFormat Gets the date year with 4 digits TRUE (use 4 digits)| FALSE (use 2 digits) (read-only)