Aspose.Barcode for Python via Java Generation and Recognition API docs
AutoSizeMode Class Reference

Specifies the different types of automatic sizing modes. More...

Inherits Enum.

Static Public Attributes

int NONE = 0
 
int NEAREST = 1
 
int INTERPOLATION = 2
 

Detailed Description

Specifies the different types of automatic sizing modes.

Default value is AutoSizeMode.NONE. This sample shows how to create and save a BarCode image.

 generator = BarcodeGenerator(EncodeTypes.DATA_MATRIX)
 generator.setAutoSizeMode(AutoSizeMode.NEAREST)
 generator.getBarCodeWidth().setMillimeters(50)
 generator.getBarCodeHeight().setInches(1.3f)
 generator.save("test.png", BarCodeImageFormat.PNG)

Member Data Documentation

◆ INTERPOLATION

int INTERPOLATION = 2
static

◆ NEAREST

int NEAREST = 1
static

◆ NONE

int NONE = 0
static