Component properties.

The properties which can be set to generate an image

A2barcode1.BackColor         the colour behind the bars

A2barcode1.BorderSize       specifies the thickness of any border around the image (in points)

A2barcode1.Caption  specifies the characters that make up the code

A2barcode1.CodeType         specifies the barcode type required

A2barcode1.ForeColor         the colour of the bars and any text under the bars

A2barcode1.HeightToWidth   specifies the height to width ratio of bar for PDF417

A2barcode1.ImageHeight     required target height of barcode image (in units determined by the setting of ScaleMode)

A2barcode1.ImageWidth      required target width of barcode image (in units determined by the setting of ScaleMode)

A2barcode1.LineReduce       specifies the percentage reduction in bar thickness (useful for allowing for ink spread in wet-ink printing processes.

A2barcode1.ScaleMode        specifies the units of ImageHeight, ImageWidth, PictureWidth and PictureHeight parameters (default is 6 = mm)

Axbarcode1.TargetHdpi        Target device horizontal resolution (in dpi) for bitmap based images

Axbarcode1.TargetVdpi        Target device vertical resolution (in dpi) for bitmap based images

 

Many of these properties have default values (see the reference section), so do not require changing if you can make do with the default values. The properties which must be set for you to obtain a barcode are

A2barcode1.CodeType         specifies the barcode type required

A2barcode1.Caption  specifies the characters, which make up the code

A typical example of setting these properties is:

A2barcode1.CodeType=2     rem code type is 2 for PDF417 type barcode

A2barcode1.Caption="123456"     rem code is 123456

 

More:

Methods of using the barcode image