Barcode Home

A barcode is an optical machine-readable representation of data relating to the object to which it is attached.

To add barcodes into a drawing use following functions:

Function Meaning
lcBlockAddBarcode Adds a barcode

A barcode entity has the following properties:

Property Type Access Meaning
LC_PROP_ENT_...    Base class properties
LC_PROP_BARC_XC float RW Center point X
LC_PROP_BARC_YC float RW Center point Y
LC_PROP_BARC_W float RW Width
LC_PROP_BARC_H float RW Height
LC_PROP_BARC_ANG float RW Rotation angle (relative to center point)
LC_PROP_BARC_TYPE int RW barcode type
LC_PROP_BARC_TEXT string RW Text data of barcode
LC_PROP_BARC_CHECKSUM bool RW Add checksum
LC_PROP_BARC_NCHARS int R Number of characters
LC_PROP_BARC_NUBITS int R Number of unused bits (free bits)
LC_PROP_BARC_NARSIZE float R Size of narrow bar
LC_PROP_BARC_WIDERATIO float RW Ratio <wide bar> / <narrow bar>
LC_PROP_BARC_QZONE float RW Size of quiet zone
LC_PROP_BARC_OFFSET float RW Reduction of bars (offset to inside)
LC_PROP_BARC_INVERT bool RW Inverted
LC_PROP_BARC_HIDETEXT bool RW Do not display text (only for 1D barcodes)
LC_PROP_BARC_TSTYLE handle
string
RW Handle to text style
Name of text style
LC_PROP_BARC_TEXTH float RW Text height, relative to barcode height (0.1 - 0.5)
LC_PROP_BARC_TEXTW float RW Text width scale (0.2 - 3.0)
LC_PROP_BARC_TEXTCS float RW Text charspace (0.0 - 2.0)
LC_PROP_BARC_TEXTALIGN int RW Text alignment (0-left, 1-center, 2-right)
LC_PROP_BARC_TEXTRES int RW Quality of text curves
LC_PROP_BARC_ECLEVEL int RW Error correction level
LC_PROP_BARC_SIZE int
string
R Size of 2D barcode, H x W, modules
LC_PROP_BARC_NBARS int R 1D barcodes: Number of bars
LC_PROP_BARC_NMODX int R 2D barcodes: Number of horizontal modules
LC_PROP_BARC_NMODY int R 2D barcodes: Number of vertical modules

See also

   Code sample,   Retrieve objects