UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
LabelMaker.TSPL.BcdAztec.AztecBarcode Class Reference

A class representing an Aztec barcode for TSPL. More...

Inheritance diagram for LabelMaker.TSPL.BcdAztec.AztecBarcode:

Public Member Functions

 __init__ (self, Optional[IPoint] start=None, Optional[str] data=None)
 Initializes a new instance of the AztecBarcode class with the specified start point and data.
 
str __str__ (self)
 Returns a string that can be sent to the printer.
 

Static Public Member Functions

int calculate_aztec_module_count (int data_size, int error_correction_percentage)
 
int calculate_total_codewords_for_layers (int layers)
 
int calculate_length_with_ecc (int data_length, int ecc_percentage)
 

Public Attributes

 type
 

Detailed Description

A class representing an Aztec barcode for TSPL.

This class inherits from AAztecBarcode and provides functionality for initializing and describing Aztec barcodes in TSPL.

Constructor & Destructor Documentation

◆ __init__()

LabelMaker.TSPL.BcdAztec.AztecBarcode.__init__ ( self,
Optional[IPoint] start = None,
Optional[str] data = None )

Initializes a new instance of the AztecBarcode class with the specified start point and data.

Parameters
startThe starting point of the barcode.
dataThe data to be encoded in the barcode.

Member Function Documentation

◆ __str__()

str LabelMaker.TSPL.BcdAztec.AztecBarcode.__str__ ( self)

Returns a string that can be sent to the printer.

This method generates a string representation of the AztecBarcode instance that is formatted and ready to be sent to a printer. The string includes all the necessary commands and data required for printing in TSPL.

Returns
A string description of the AztecBarcode instance.

◆ calculate_aztec_module_count()

int LabelMaker.TSPL.BcdAztec.AztecBarcode.calculate_aztec_module_count ( int data_size,
int error_correction_percentage )
static

◆ calculate_length_with_ecc()

int LabelMaker.TSPL.BcdAztec.AztecBarcode.calculate_length_with_ecc ( int data_length,
int ecc_percentage )
static

◆ calculate_total_codewords_for_layers()

int LabelMaker.TSPL.BcdAztec.AztecBarcode.calculate_total_codewords_for_layers ( int layers)
static

Member Data Documentation

◆ type

LabelMaker.TSPL.BcdAztec.AztecBarcode.type

The documentation for this class was generated from the following file: