Class MaxiCodeCodetext

MaxiCodeCodetext class

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

public abstract class MaxiCodeCodetext : IComplexCodetext

Properties

NameDescription
ECIEncoding { get; set; }Gets or sets ECI encoding. Used when MaxiCodeEncodeMode is Auto. Default value: ISO-8859-1
MaxiCodeEncodeMode { get; set; }Gets or sets a MaxiCode encode mode. Default value: Auto.

Methods

NameDescription
GetBarcodeType()Gets barcode type.
abstract GetConstructedCodetext()Constructs codetext
abstract GetMode()Gets MaxiCode mode.
abstract InitFromString(string)Initializes instance from constructed codetext.

Examples

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

[C#]
using (BarCodeReader reader = new BarCodeReader(@"c:\test.png", DecodeType.MaxiCode))
{
     foreach (BarCodeResult result in reader.ReadBarCodes())
    {
        MaxiCodeCodetext resultMaxiCodeCodetext = ComplexCodetextReader.TryDecodeMaxiCode(result.Extended.MaxiCode.MaxiCodeMode, result.CodeText);
        Console.WriteLine("BarCode Type: " + resultMaxiCodeCodetext.GetBarcodeType());
        Console.WriteLine("MaxiCode mode: " + resultMaxiCodeCodetext.GetMode());
        Console.WriteLine("BarCode CodeText: " + resultMaxiCodeCodetext.GetConstructedCodetext());
    }
}

See Also