Aspose.Barcode for Python via Java Generation and Recognition API docs
asposebarcode.Generation.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", "PNG")

Member Data Documentation

◆ INTERPOLATION

int asposebarcode.Generation.AutoSizeMode.INTERPOLATION = 2
static

◆ NEAREST

int asposebarcode.Generation.AutoSizeMode.NEAREST = 1
static

◆ NONE

int asposebarcode.Generation.AutoSizeMode.NONE = 0
static