Flags

Barcode.Flags            An integer that allows additional formatting control.

The Flags property holds a number of bit flags that determine aspects of the formatting for some barcode types. The variable may be filled by ORing with the available codes defined in DLSBAR32.H:

#define DL_FLAG_MARGINS=1
specifies that barcodes should show margin indicators (ie. < and > marks), and that UPC-A and UPC-E codes should have the Country Prefix code and the checkdigit printed in the light margin regions. Also used to show the end bars for ITF-6 and ITF-14 codes although in this case the flag is only applied if the Bearers flag is also set.

#define DL_FLAG_BEARERS=2
specifies how Bearer bars should be shown (see bearer_size).  For ITF-6 and ITF-14 codes the flag specifies standard ITF bearer bars and bearer_size is ignored.

#define DL_FLAG_TRANSPARENT=4
specifies that the barcode image is generated with no background (i.e. any background colour is ignored). However, this flag should be used with caution as a background image showing through a barcode can disrupt the scanning process.

#define DL_FLAG_EXBEARERS=8
specifies that any bearer bars are extended beyond the bars into the light margins.

Two additional flags have been added, DL_FLAG_EXTRA1 (16) and DL_FLAG_EXTRA2 (32). These will normally be unused. They do, however, provide for extra functions that are specific to particular barcode types. For details see the Barcodes HELP system.

 

More:

Font