バーベキューを使用してバーコードを生成しましたが、必要に応じてバーコードのサイズを変更したいと考えています。BufferedImage を試してみたところ、サイズの異なるバーコードが表示されましたが、バーコードの下に黒い線が追加されました。
public class GenerateBarcode {
public static void main(String[] args) throws Exception {
String initialString = JOptionPane.showInputDialog("ここにテキストを入力してください");
バーコード バーコード = BarcodeFactory.createCode128(initialString);
BufferedImage bi = BarcodeImageHandler.getImage(バーコード);
}
}
ここで「bi」のサイズを変更したいと思います。