BARCODE1D

typedef struct tagBarCode1D
{
   L_UINT uStructSize;
   L_BOOL bOutShowText; 
   L_INT nDirection; 
   L_BOOL bErrorCheck;
   L_INT nGranularity; 
   L_INT nMinLength; 
   L_INT nMaxLength;
   L_INT nWhiteLines;
} BARCODE1D, L_FAR * pBARCODE1D;

This structure contains linear (1D) barcode information for reading or writing 1D bar codes.

Member

Description

uStructSize

Size of the BARCODE1D structure, in bytes, for versioning. Use the sizeof() macro to calculate the value.

bOutShowText

Indicates whether the barcode string will be shown or not. This member is valid for the LBarCode::WriteExt and LBarCode::WriteExt2 functions. Possible values are:

 

Value

Meaning

 

TRUE

The barcode string will be shown.

 

FALSE

The barcode string will not be shown.

 

nDirection

Flag that indicates the orientation and direction for reading barcodes. This member is valid for the LBarCode::Read. You can combine values when appropriate, by using a bitwise OR ( | ). Possible values are :

 

Value

Meaning

 

BARCODE_DIR_LEFT_TO_RIGHT

[0x001] To read from left to right across the bitmap.

 

BARCODE_DIR_RIGHT_TO_LEFT

[0x002] To read from right to left across the bitmap.

 

BARCODE_DIR_TOP_TO_BOTTOM

[0x004] To read from top to bottom across the bitmap.

 

BARCODE_DIR_BOTTOM_TO_TOP

[0x008] To read from bottom to top across the bitmap.

 

BARCODE_DIR_SKEW

[0x010] To read in a skewed or diagonal direction.

 

BARCODE_DIR_HORIZONTAL

[0x020] To read horizontally (left to right and right to left).

 

BARCODE_DIR_VERTICAL

[0x040] To read vertically (top to bottom and bottom to top).

 

BARCODE_DIR_DIAGONAL

[0x080] To read in a diagonal or skewed direction.

bErrorCheck

Enables or disables the use of an error check digit while reading or writing a bar code.

nGranularity

Number of scanned lines per column to skip when reading a barcode. 9 is the default value. This means that each tenth line will be scanned when looking for a barcode. Scanning every line will slow the search process while skipping too many lines may skip over the barcode. This member is valid for the LBarCode::Read function.

nMinLength

The minimum length of a barcode string when searching for a non fixed length bar code. This member is valid for the LBarCode::Read function.

nMaxLength

The maximum length of a barcode string This must be no greater than 64.

nWhiteLines

The number of lines of white space above and below the barcode symbol.

Comments

This structure is used with LBarCode::Read, LBarCode::WriteExt, and LBarCode::WriteExt2  functions only for linear barcodes.

pBARCODE1D is a pointer to an BARCODE1D structure. Where the function parameter type is pBARCODE1D, you can declare a BARCODE1D variable, update the structure's fields, and pass the variable's address in the parameter. Declaring a pBARCODE1D variable is necessary only if your program requires a pointer.

The Linear barcodes are not supported in UNICODE.