Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS Barcode C++ Class Library Help

BARCODECOLOR

Show in webframe

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.

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.