public final class AutoSizeMode
extends java.lang.Enum
Specifies the different types of automatic sizing modes. Default value is AutoSizeMode.None.
This sample shows how to create and save a BarCode image.BarCodeGenerator generator = new BarCodeGenerator(EncodeTypes.DATA_MATRIX); generator.setAutoSizeMode(AutoSizeMode.Nearest); generator.getBarCodeWidth().setMillimeters(50); generator.getBarCodeHeight().setInches(1.3f); generator.save("test.png");
public static final int None
Automatic resizing is disabled. Default value.
public static final int Nearest
Barcode resizes to nearest lowest possible size which are specified by BarCodeWidth and BarCodeHeight properties.