BarcodeDraw bdraw = BarcodeDrawFactory.GetSymbology(BarcodeSymbology.Code128); Image barcodeImage = bdraw.Draw("barcodetext", barcodeImageHeight); g.DrawImage(barcodeImage, barcodeRect);