Hello Team, we are using Aspose-barcode-21.12.jar in our code with purchased license.
Due to JAR version upgradation, we forced changed our old Java code and due to new code changes, we can see barcode image size is enlarged, below is code.
Please advise on same,
We can see changes in Image dimensions and less in size but barcode image still vertically stretched. Below is code.
bg.setCodeText(bcodeType);
bg.getParameters().setAutoSizeMode(AutoSizeMode.NEAREST);
bg.getParameters().getImageHeight().setMillimeters(70.0f);
bg.getParameters().getBarcode().getBarHeight().setMillimeters(50.0f);
bg.getParameters().getBorder().setVisible(false);
bg.getParameters().getBarcode().getXDimension().setMillimeters(2.0f);
bg.getParameters().getBarcode().setChecksumEnabled(EnableChecksum.NO);
bg.getParameters().setResolution(300);
bg.save(strBCdImgPath,BarCodeImageFormat.JPEG);