barnhill / barcode-java

Java Barcode Image Generation Library
MIT License
25 stars 14 forks source link

Example does not work #21

Closed we-sell-bags closed 1 year ago

we-sell-bags commented 1 year ago

This code just produces a solid barcode with no text, it is not teh same as the sample image.

Barcode barcode = new Barcode(); Image img = barcode.encode(BarcodeLib.TYPE.UPCA, "038000356216");

barnhill commented 1 year ago
Barcode barcode = new Barcode(); 
barcode.IncludeLabel = true;
Image img = barcode.encode(BarcodeLib.TYPE.UPCA, "038000356216");