BARCODECOLOR

Summary

This structure contains colors information for reading or writing barcodes.

Syntax

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

Members

uStructSize

Size of the BARCODECOLOR structure, in bytes, for versioning. Use the sizeof() operator 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 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.

Usage

Data Types

Functions

Help Version 22.0.2022.12.8
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Barcode C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.