Draw Multiple Barcodes on Same Graphic

Draw Multiple Barcodes on Same Graphic

You are here:
< Back

To create several barcodes in the same graphic image, draw the barcode in a temporary buffered image and then copy the image to the correct position. It should look similar to the code below. Please keep in mind that the syntax is only an approximation. This method should be compatible with all graphical generation products, including the Barcode Windows Forms Control.

This information was provided by a licensed developer who used this syntax and is not supported by the IDAutomation Technical Support Staff:

// create tmp image
Image tmpImage=CreateBufferedImage( ….)
Graphics tmpGraphics=tmpImage.getGraphics();
// draw barcode in tmpGraphics
barcode.paint(tmpGraphics);
// copy to correct position on final image
finalGraphics.drawImage(tmpImage,x,y,null)