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);
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.