Class OneDExtendedParameters
Namespace: Aspose.BarCode.BarCodeRecognition
Assembly: Aspose.BarCode.dll (25.2.0)
Stores special data of 1D recognized barcode like separate codetext and checksum
public sealed class OneDExtendedParameters : BaseExtendedParameters
Inheritance
object ← BaseExtendedParameters ← OneDExtendedParameters
Inherited Members
BaseExtendedParameters.IsEmpty, object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Examples
This sample shows how to get 1D barcode value and checksum
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);
}
}
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
Properties
CheckSum
Gets the checksum for 1D barcodes.
public string CheckSum { get; }
Property Value
Value
Gets the codetext of 1D barcodes without checksum.
public string Value { get; }
Property Value
Methods
Equals(object)
Returns a value indicating whether this instance is equal to a specified Aspose.BarCode.BarCodeRecognition.OneDExtendedParameters value.
public override bool Equals(object obj)
Parameters
obj
object
An System.Object value to compare to this instance.
Returns
true if obj has the same value as this instance; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
A 32-bit signed integer hash code.
ToString()
Returns a human-readable string representation of this Aspose.BarCode.BarCodeRecognition.OneDExtendedParameters.
public override string ToString()
Returns
A string that represents this Aspose.BarCode.BarCodeRecognition.OneDExtendedParameters.
Operators
operator ==(OneDExtendedParameters, OneDExtendedParameters)
Returns a value indicating whether the first Aspose.BarCode.BarCodeRecognition.OneDExtendedParameters value is equal to the second.
public static bool operator ==(OneDExtendedParameters first, OneDExtendedParameters second)
Parameters
first
OneDExtendedParameters
A first compared value
second
OneDExtendedParameters
A second compared value
Returns
true if first has the same value as second; otherwise, false.
operator !=(OneDExtendedParameters, OneDExtendedParameters)
Returns a value indicating if the first Aspose.BarCode.BarCodeRecognition.OneDExtendedParameters value is different from the second.
public static bool operator !=(OneDExtendedParameters first, OneDExtendedParameters second)
Parameters
first
OneDExtendedParameters
A first compared value
second
OneDExtendedParameters
A second compared value
Returns
true if first has the different value from second; otherwise, false.