i have a small problem. I successfully generated a barcode using barbecue library but i'm trying to print on a paper of size 99x210 and unfortunately i can't resize the barcode. It's too big.
I'm generating like this
try {
Barcode barcode = BarcodeFactory.createCode128("630798898");
Image image = BarcodeImageHandler.getImage(barcode);
g2d.drawImage(image, 30,100, this );
} catch (OutputException | BarcodeException e) {
e.printStackTrace();
}
I used something like this
BufferedImage buffered = (BufferedImage) image;
Scalr.resize(buffered,
Scalr.Method.SPEED,
Scalr.Mode.AUTOMATIC,
50,
5);
but its not doing job :/
I tried to set height and width of whole barcode by using setBarHeight, setBarWidth, setResolution but it's working too.