BARCODECOLOR

typedef struct _tagBarCodeColor 
{ 
   L_UINT uStructSize; 
   DWORD dwColorBar; 
   DWORD dwColorSpace; 
} BARCODECOLOR,  * pBARCODECOLOR; 

This structure contains colors information for reading or writing barcodes

Member

Description

uStructSize

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

dwColorBar

Specifies the bar color for barcode. This is used as the color of the bars for writing. And if reading, this is used as the color of the bars when searching for the barcode in the image. The default is the color black - RGB(0, 0, 0).

dwColorSpace

Specifies the space color for barcode. This is used as the color of the spaces for writing. If reading, this is used as the color of the spaces when searching for the barcode in the image. The default is the color white - RGB(255,255,255).

Comments

The dwColorBar and dwColorSpace member are COLORREF type and they constructed by using the RGB macro.

This structure is used with LBarCode::Read, LBarCode::Write functions for all barcode types.

The LBarCode::Read, LBarCode::Write functions will ignore these values when the bitmap is 1BPP. For 16 or 32 BPP images, this is the actual value of the pixel as found in the image and not a COLORREF.

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

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Barcode C++ Class Library Help