Setting the image size

Active 2D-Barcode Control creates a barcode image at a size specified by the user. However, the metafile image is fully resizable by the user – so can be displayed or printed at a size other than that originally created.

There are two ways of specifying the size at which the image is created:

1.  Any of the supported barcode type may have the image size specified by setting the Xunit property to the width of the narrowest element in the barcode (and, where relevant the HeightToWidth property). Xunit values are specified in Mils. In this case the initial setting of the ImageWidth property is ignored. After the image has been created the PictureWidth and PictureHeight properties contain the actual width and height of the barcode image.

2.  Any barcode type may have the image size specified by setting the ImageWidth and ImageHeight properties when the Xunit property is set to 0.

 

More:

Fixed size symbols