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 BARCODECOLOR structure in bytes. Use the sizeof operator to calculate this 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 L_BarCodeRead, L_BarCodeReadExt and L_BarCodeWrite 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 COLORRF.

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

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

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