Aspose::BarCode::ComplexBarcode::MaxiCodeCodetext class

MaxiCodeCodetext class

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

class MaxiCodeCodetext : public Aspose::BarCode::ComplexBarcode::IComplexCodetext

Methods

MethodDescription
get_ECIEncoding()Gets ECI encoding. Used when MaxiCodeEncodeMode is Auto. Default value: ISO-8859-1.
get_MaxiCodeEncodeMode() constGets a MaxiCode encode mode. Default value: Auto.
GetBarcodeType() overrideGets barcode type.
virtual GetConstructedCodetext()Constructs codetext.
virtual GetMode() constGets MaxiCode mode.
virtual InitFromString(System::String)Initializes instance from constructed codetext.
MaxiCodeCodetext()
set_ECIEncoding(Aspose::BarCode::Generation::ECIEncodings)Sets ECI encoding. Used when MaxiCodeEncodeMode is Auto. Default value: ISO-8859-1.
set_MaxiCodeEncodeMode(Aspose::BarCode::Generation::MaxiCodeEncodeMode)Sets a MaxiCode encode mode. Default value: Auto.

Remarks

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