Aspose::BarCode::BarCodeRecognition::AztecExtendedParameters class

AztecExtendedParameters class

Stores special data of Aztec recognized barcode.

class AztecExtendedParameters : public Aspose::BarCode::BarCodeRecognition::BaseExtendedParameters

Methods

MethodDescription
get_IsEmpty()Tests whether all parameters has only default values.
get_IsReaderInitialization()Indicates whether code is used for instruct reader to interpret the following data as instructions for initialization or reprogramming of the bar code reader. Default value is false.
get_StructuredAppendBarcodeId()Gets the ID of the Aztec structured append mode barcode. ID starts from 1 and must be less or equal to barcodes count. Default value is 0.
get_StructuredAppendBarcodesCount()Gets the Aztec structured append mode barcodes count. Default value is 0. Count must be a value from 1 to 26.
get_StructuredAppendFileId()Gets the File ID of the Aztec structured append mode. Default value is empty string.
GetHashCode() const overrideReturns the hash code for this instance.
ToString() const overrideReturns a human-readable string representation of this AztecExtendedParameters.

Remarks

This sample shows how to get Aztec raw values

[C#]
using (BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Aztec, "12345"))
{
    generator.Save(@"c:\test.png");
}
using (BarCodeReader reader = new BarCodeReader(@"c:\test.png", DecodeType.Aztec))
{
    foreach (BarCodeResult result in reader.ReadBarCodes())
    {
        Console.WriteLine("BarCode type: " + result.CodeTypeName);
        Console.WriteLine("BarCode codetext: " + result.CodeText);
        Console.WriteLine("Aztec barcode ID: " + result.Extended.Aztec.StructuredAppendBarcodeId);
        Console.WriteLine("Aztec barcodes count: " + result.Extended.Aztec.StructuredAppendBarcodesCount);
        Console.WriteLine("Aztec file ID: " + result.Extended.Aztec.StructuredAppendFileId);
        Console.WriteLine("Aztec is reader initialization: " + result.Extended.Aztec.IsReaderInitialization);
    }
}

See Also