Aspose::BarCode::ComplexBarcode::MaxiCodeCodetext class
Contents
[
Hide
]MaxiCodeCodetext class
Base class for encoding and decoding the text embedded in the MaxiCode code.
class MaxiCodeCodetext : public Aspose::BarCode::ComplexBarcode::IComplexCodetext
Methods
Method | Description |
---|---|
get_ECIEncoding() | Gets ECI encoding. Used when MaxiCodeEncodeMode is Auto. Default value: ISO-8859-1. |
get_MaxiCodeEncodeMode() const | Gets a MaxiCode encode mode. Default value: Auto. |
GetBarcodeType() override | Gets barcode type. |
virtual GetConstructedCodetext() | Constructs codetext. |
virtual GetMode() const | Gets 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
- Class IComplexCodetext
- Namespace Aspose::BarCode::ComplexBarcode
- Library Aspose.BarCode for C++