I am trying to generate an EAN8-barcode in java. If tried barcode4j (which is free in contrary to the barcodelib), which gives me really good results.
One thing I haven't figured out is to change the width and the height of the barcode in barocde4j. I have solved it by the resolution parameter, which isn't imho that good solution.
What i wanna do is generating everthing in zxing (because i also need QR code), but the result look quite ugly. This is how i generate the barcode:
BitMatrix matrix;
com.google.zxing.Writer writer = new EAN8Writer();
com.google.zxing.BarcodeFormat BarcodeFormat;
matrix = writer.encode(code,BarcodeFormat, width, height);
MatrixToImageWriter.writeToStream(matrix, "JPG", output);
Picture looks with zxing like
But i wish it would look like barcode4j does it:
regards && tia noircc