169
rated 0 times
[
174]
[
5]
/ answers: 1 / hits: 21371
/ 12 Years ago, thu, september 27, 2012, 12:00:00
am able to generate barcode using zxing barcode library, am using ...
String text = 123456789101;
int width = 300;
int height = 100;
String imgFormat = png;
BitMatrix bitMatrix = new UPCAWriter().encode(text, BarcodeFormat.UPC_A, width, height);
MatrixToImageWriter.writeToStream(bitMatrix, imgFormat, new FileOutputStream(new File(C:\code_.png)));
out.println(Success!);
I got my output, with plane barcode image, but i want to print 'text(String text = 123456789101;)' also bottom of that image, any one know pls help me.
Thanks much.
More From » java