Class OneDExtendedParameters
Contents
[
Hide
]OneDExtendedParameters class
Stores special data of 1D recognized barcode like separate codetext and checksum
public sealed class OneDExtendedParameters : BaseExtendedParameters
Properties
Name | Description |
---|---|
CheckSum { get; } | Gets the checksum for 1D barcodes. |
IsEmpty { get; } | Tests whether all parameters has only default values |
Value { get; } | Gets the codetext of 1D barcodes without checksum. |
Methods
Name | Description |
---|---|
override Equals(object) | Returns a value indicating whether this instance is equal to a specified OneDExtendedParameters value. |
override GetHashCode() | Returns the hash code for this instance. |
override ToString() | Returns a human-readable string representation of this OneDExtendedParameters . |
operator == | Returns a value indicating whether the first OneDExtendedParameters value is equal to the second. |
operator != | Returns a value indicating if the first OneDExtendedParameters value is different from the second. |
Examples
This sample shows how to get 1D barcode value and checksum
[C#]
using (BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.EAN13, "1234567890128"))
{
generator.Save(@"c:\test.png");
}
using (BarCodeReader reader = new BarCodeReader(@"c:\test.png", DecodeType.EAN13))
{
foreach (BarCodeResult result in reader.ReadBarCodes())
{
Console.WriteLine("BarCode Type: " + result.CodeTypeName);
Console.WriteLine("BarCode CodeText: " + result.CodeText);
Console.WriteLine("BarCode Value: " + result.Extended.OneD.Value);
Console.WriteLine("BarCode Checksum: " + result.Extended.OneD.CheckSum);
}
}
[VB.NET]
Using generator As New BarcodeGenerator(EncodeTypes.EAN13, "1234567890128")
generator.Save("c:\test.png")
End Using
Using reader As New BarCodeReader("c:\test.png", DecodeType.EAN13)
For Each result As BarCodeResult In reader.ReadBarCodes()
Console.WriteLine("BarCode Type: " + result.CodeTypeName)
Console.WriteLine("BarCode CodeText: " + result.CodeText)
Console.WriteLine("BarCode Value: " + result.Extended.OneD.Value)
Console.WriteLine("BarCode Checksum: " + result.Extended.OneD.CheckSum)
Next
End Using
See Also
- class BaseExtendedParameters
- namespace Aspose.BarCode.BarCodeRecognition
- assembly Aspose.BarCode