Hi All,
We want to use Aspose.BarCode for generating our 1D and 2D barcodes. What would be the image quality of barcodes generated from this. Is it 96DPI? Can the DPI be increased?
I have used the below code as per the sample provided by aspose, but the DPI is still 96, Please help. I want to generate barcode with 300DPI.
Linear barcode = new Linear();
barcode.setType(Linear.CODE128);
barcode.setData(“123456789012”);
barcode.setUOM(Linear.UOM_PIXEL);
barcode.setX(5f);
barcode.setY(300f);
barcode.setLeftMargin(0f);
barcode.setRightMargin(0f);
barcode.setTopMargin(0f);
barcode.setBottomMargin(0f);
barcode.setResolution(300);// barcode image resolution in dpi
barcode.setShowText(true);
barcode.setTextFont(new Font(“Arial”, 0, 12));
barcode.setRotate(Linear.ANGLE_0);
barcode.renderBarcode(“barcodelib-code128c.gif”);