Summary of Properties and Methods

 

The most important properties are outlined below, and followed by sections in which the properties are defined in detail.

The properties that can be set to generate an image

M_barcode.AspectRatio        the target aspect ratio (height/width) for PDF417 barcodes. Ignored for other barode types.

M_barcode.BackColor          the colour behind the bars

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

M_barcode.Caption    specifies the characters that make up the code

M_barcode.CodeType specifies the barcode type required

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

M_barcode.HeightToWidth    specifies the height to width ratio of the elements of a PDF417 or MicroPDF417 barcode.

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

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

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

M_barcode.Orientation         specifies the orientation of the barcode image

M_barcode.PictureHeight      the height of barcode picture generated (in Pixels)

M_barcode.PictureWidth       the width of barcode picture generated (in Pixels)

M_barcode.xunit                specifies the thickness of each barcode element in mils

 

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 that must be set for you to obtain a barcode are

M_barcode.CodeType specifies the barcode type required

M_barcode.Caption    specifies the characters that make up the code

A typical example of setting these properties is:

M_barcode.CodeType=0     rem code type is 0 Aztec type barcode

M_barcode.Caption="123456"     rem code is 123456

 

 

More:

Methods of using the barcode image