MaxiCodeCodetext

MaxiCodeCodetext

Base class for encoding and decoding the text embedded in the MaxiCode code.

This sample shows how to decode raw MaxiCode codetext to MaxiCodeCodetext instance.

Constructor

new MaxiCodeCodetext()

Source:
Example
let reader = new BarCodeReader("c:\\test.png", null, DecodeType.MAXI_CODE);
reader.readBarCodes().forEach(function(result, i, results)
{
     let resultMaxiCodeCodetext = ComplexCodetextReader.tryDecodeMaxiCode(result.getExtended().getMaxiCode().getMaxiCodeMode(), result.getCodeText());
     console.log("BarCode Type: " + resultMaxiCodeCodetext.getBarcodeType());
     console.log("MaxiCode mode: " + resultMaxiCodeCodetext.getMode());
     console.log("BarCode CodeText: " + resultMaxiCodeCodetext.getConstructedCodetext());
});

Methods

getBarcodeType()

Gets barcode type.
Returns:
Type Description
Barcode type
Source:

getECIEncoding()

Gets ECI encoding. Used when MaxiCodeEncodeMode is AUTO.
Source:

getMaxiCodeEncodeMode()

Gets a MaxiCode encode mode.
Source:

getMode()

Gets MaxiCode mode.
Returns:
Type Description
MaxiCode mode
Source:

setECIEncoding()

Sets ECI encoding. Used when MaxiCodeEncodeMode is AUTO.
Source:

setMaxiCodeEncodeMode()

Sets a MaxiCode encode mode.
Source: