Aspose::BarCode::BarCodeRecognition::Code128ExtendedParameters class

Code128ExtendedParameters class

Stores special data of Code128 recognized barcode.

class Code128ExtendedParameters : public Aspose::BarCode::BarCodeRecognition::BaseExtendedParameters

Methods

MethodDescription
get_Code128DataPortions()Gets Code128DataPortion array of recognized Code128 barcode.
get_IsEmpty()Tests whether all parameters has only default values.
GetHashCode() const overrideReturns the hash code for this instance.
ToString() const overrideReturns a human-readable string representation of this Code128ExtendedParameters.

Remarks

Represents the recognized barcode’s region and barcode angle

This sample shows how to get code128 raw values

[C#]
using (BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Code128, "12345"))
{
    generator.Save(@"c:\test.png");
}
using (BarCodeReader reader = new BarCodeReader(@"c:\test.png", DecodeType.Code128))
{
    foreach (BarCodeResult result in reader.ReadBarCodes())
    {
        Console.WriteLine("BarCode Type: " + result.CodeTypeName);
        Console.WriteLine("BarCode CodeText: " + result.CodeText);
        Console.WriteLine("Code128 Data Portions: " + result.Extended.Code128);
    }
}
[VB.NET]
Using generator As New BarcodeGenerator(EncodeTypes.Code128, "12345")
    generator.Save("c:\test.png")
End Using
Using reader As New BarCodeReader("c:\test.png", DecodeType.Code128)
    For Each result As BarCodeResult In reader.ReadBarCodes()
        Console.WriteLine("BarCode Type: " + result.CodeTypeName)
        Console.WriteLine("BarCode CodeText: " + result.CodeText)
        Console.WriteLine("Code128 Data Portions: " + result.Extended.Code128)
    Next
End Using

See Also