Examples of establishDimensions()


Examples of org.krysalis.barcode4j.output.bitmap.BitmapCanvasProvider.establishDimensions()

    if (input != null && !"".equals(input)) {
      String enc = new String(Base64.encodeBase64(input.getBytes("UTF-8")));

      BitmapCanvasProvider provider = new BitmapCanvasProvider(bitmapResolution, imageType, antialias, orientation);
      provider.establishDimensions(dimension);
      if (barcodeGenerator instanceof AbstractBarcodeBean) {
        AbstractBarcodeBean bean = (AbstractBarcodeBean)barcodeGenerator;
        bean.setModuleWidth(UnitConv.in2mm(pointPixels / bitmapResolution));
        bean.doQuietZone(false);
        bean.generateBarcode(provider, enc);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.