Property: BarColor

Specifies the color for all bars or dark modules in the barcode symbol, By default, it's claBlack.

Syntax:

property BarColor: TAlphaColor;

Description:

For the Matrix 2D barcode symbologies, including TBarcodeFmx2D_AztecCode, TBarcodeFmx2D_AztecRunes, TBarcodeFmx2D_DataMatrix, TBarcodeFmx2D_DataMatrixECC200, TBarcodeFmx2D_HanXinCode, TBarcodeFmx2D_GridMatrix, TBarcodeFmx2D_CompactMatrix, TBarcodeFmx2D_QRCode, TBarcodeFmx2D_MaxiCode, and TBarcodeFmx2D_MicroQRCode, the property specifies the color of every dark module in matrix symbol if the Inversed property is set to false. Otherwise, it specifies the color of every light module (background color). The module is single cell in the matrix symbol used to encode one bit data, nominally a suqare shape, in MaxiCode symbology, it's a regular hexagonal shape.

For Stacked 2D barcode symbologies and Linear 1D barcode symbologies, including TBarcodeFmx2D_Code16K, TBarcodeFmx2D_PDF417, TBarcodeFmx2D_MicroPDF417, TBarcodeFmx2D_RSS14, TBarcodeFmx2D_RSSLimited, and TBarcodeFmx2D_RSSExpanded, the property specifies the color for all bars in the barcode symbol if the Inversed property is set to false. Otherwise, it specifies the color for all spaces (background color).

Also, when the leading quiet zone, trailing quiet zone, top quiet zone, and bottom quiet zone are drawn (the ShowQuietZone property is set to true), if the Inversed property is set to true, the color specified by this BarColor property will be used to draw them. Otherwise, the color specified by the SpaceColor property will be used.

Contents