EMAIL: info@ardisialabs.com
Contact envelope

BarCode

Overview

Package includes components to generate and display several different types of barcodes.

Creating the BarCode Component

All of the 1-D bar codes are created using the ardisia.components.barCode.BarCode class, which extends the Flex SDK Group class and can be added to any parent container that implements IVisualElementContainer.

QRCode encoding is provided by way of files located in the demo application and is not discussed herein. See the barcode demo files.

Using the BarCode Components

For the barcodes, simply set the "type" property (1-D only), the "value" to encode, and you are done.

Generally, the component does not validate the encoded data. It is up to the developer to ensure data is of the correct format before feeding it to this class for encoding. Also, this component does not manage quiet zones. See the specification files for some notes on required quiet zone widths.

Layout, Resolution, and Measured Dimensions

If the bar code's dimensions are set explicitly the bar codes will be sized to fit, but each data point may not be represented by a whole pixel. This may make it difficult for code scanners to read.

To ensure whole pixels, use the "resolution" property of the barcode to set how wide each data point is and let the bar code size itself.

In summary, explicit dimensions are allowed, but this may cause partial pixels to be drawn and therefore be harder for a barcode reader to decode. Use measured dimensions and control the relative size via the "resolution" property.

Bar Color

Set the color of the data via the "barColor" property on the components.

Example

See the BarCode demo application for example code.

Back To Top