We are currently using the Aspose Barcode library for java release 6.8. We are planning on updating our libraries and would like to review the latest release 8.1.0.
We have had issues generating usable barcode images with distinct high, medium and low resolution. We print barcodes on credentials (ID card). Some of the issues are the higher density barcodes (code 39, 93, codabar) are hard to read, while the lower density images are too large to be used for the card size.
Can you provide details how the following settings (and possibly other settings) will allow us to resolve some of these issues? Could you also provide some sample code that would generate images that vary in size. I have found that the samples you have online using x-Dimension between .1 and .9 create only 3 distinct images.
image size
builder.setImageHeight(50);
builder.setImageWidth(120);
image resolution setDpiX() and setDpiY()
builder.setResolution(new Resolution(200f, 400f, ResolutionMode.Customized));
x-Dimension
builder.setxDimension(0.5f);
In order to use the barcodes we need to create a 1 bit per pixel image. Is there a setting that would allow us to generate such an image?
Hi,
Thank you for your inquiry.
This is to update you that it is important to apply AustoSize property and set it to false along with your settings. You can adjust barcode image size and can set unit of the barcode image through code. Please follow the links given below for details:
Regarding “create a 1 bit per pixel image”; usually 8 bits (or 1 byte) are used for 1 pixel. Hope the above information helps. Feel free to contact us in case of any query or comments.
I would like some feedback on the following. We print Id Cards with 1D barcodes. We need 3 sizing options (low, medium and high density) I am using setxDimension to accomplish this. I can get 3 distinct barcode images using the range of .1f to .3f for high, .4f to .6f for medium and .7f to .9f for low. The generated image pixel widths for high, medium and low are 109, 188 and 267. I would like to make the widths smaller. Are there other settings that could accomplish that. I am using sample code from GitHub barcode/advanced_features/MnageXAndYDimension as a base to test more options. Any suggestions would be appreciated.
Hi,
Thank you for writing us back.
Please visit the following links for details. You can find the information and code snippet to generate barcode of custom size.