Barcode(Graphics g)

Return Type:  Metafile

This method causes a barcode image to be created using the Graphics properties of g (including the PageUnit property which determines that absolute size information embedded in the image).

Barcode(Graphics g, float fScale, int iUseMetaProps) is the fundamental metafile-creation method which is called by all other methods that generate an image and is not normally called directly. fScale provides the absolute scaling factor for the metafile image created. If iUseMetaProps is greater than zero the metafile is based on a 96 dpi resolution no matter what the true resolution of the graphics device – and should be used, for example, when creating an image on a web server based on a dummy bitmap file. If iUseMetaProps =0 then the metafile created is based on the resolution of the graphics g.

Note that the barcode symbol is determined only when this method is called, so the information properties are not set until this method has been called.

More:

cBarcode()