public final class AutoSizeMode
extends com.aspose.ms.System.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");
Modifier and Type | Field and Description |
---|---|
static int |
Nearest
Barcode resizes to nearest lowest possible size
which are specified by BarCodeWidth and BarCodeHeight properties.
|
static int |
None
Automatic resizing is disabled.
|
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.