cBarcode()

Return Type:  Integer

cBarcode(int hDpi, int vDpi) copies to the clipboard a bitmap image scaled to be suitable for printing on a device with horizontal and vertical resolutions of hDpi and vDpi dots per inch respectively.

cBarcode(Graphics g, int hDpi, int vDpi)     copies to the clipboard a bitmap image scaled to be suitable for printing on a device with horizontal and vertical resolutions of hDpi and vDpi dots per inch respectively using the properties of Graphics g.

This method is useful for generating an image that is to be copied to another application for later printing, e.g. for copying an image that will be subsequently pasted into Word and printed on a 600 dpi printer:

Abcnet1.cBarcode(g,600,600)

If hDpi and vDpi are zero the properties of the Graphics g will be used.

Returns 0 if successful, or an error code if the barcode cannot be created, or -1 if the clipboard is not available.

 

More:

doBarcode()