Class DataMatrixExtendedParameters

Class DataMatrixExtendedParameters

Namespace: Aspose.BarCode.BarCodeRecognition
Assembly: Aspose.BarCode.dll (25.2.0)

Stores special data of DataMatrix recognized barcode

public sealed class DataMatrixExtendedParameters : BaseExtendedParameters

Inheritance

objectBaseExtendedParametersDataMatrixExtendedParameters

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 DataMatrix raw values

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

Properties

IsReaderProgramming

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.

public bool IsReaderProgramming { get; }

Property Value

bool

StructuredAppendBarcodeId

Gets the ID of the DataMatrix structured append mode barcode. ID starts from 1 and must be less or equal to barcodes count. Default value is -1.

public int StructuredAppendBarcodeId { get; }

Property Value

int

StructuredAppendBarcodesCount

Gets the DataMatrix structured append mode barcodes count. Default value is -1. Count must be a value from 1 to 35.

public int StructuredAppendBarcodesCount { get; }

Property Value

int

StructuredAppendFileId

Gets the ID of the DataMatrix structured append mode barcode. ID starts from 1 and must be less or equal to barcodes count. Default value is -1.

public int StructuredAppendFileId { get; }

Property Value

int

Methods

Equals(object)

Returns a value indicating whether this instance is equal to a specified Aspose.BarCode.BarCodeRecognition.DataMatrixExtendedParameters value.

public override bool Equals(object obj)

Parameters

obj object

An System.Object value to compare to this instance.

Returns

bool

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

int

A 32-bit signed integer hash code.

ToString()

Returns a human-readable string representation of this Aspose.BarCode.BarCodeRecognition.DataMatrixExtendedParameters.

public override string ToString()

Returns

string

A string that represents this Aspose.BarCode.BarCodeRecognition.DataMatrixExtendedParameters.

Operators

operator ==(DataMatrixExtendedParameters, DataMatrixExtendedParameters)

Returns a value indicating whether the first Aspose.BarCode.BarCodeRecognition.DataMatrixExtendedParameters value is equal to the second.

public static bool operator ==(DataMatrixExtendedParameters first, DataMatrixExtendedParameters second)

Parameters

first DataMatrixExtendedParameters

A first compared value

second DataMatrixExtendedParameters

A second compared value

Returns

bool

true if first has the same value as second; otherwise, false.

operator !=(DataMatrixExtendedParameters, DataMatrixExtendedParameters)

Returns a value indicating if the first Aspose.BarCode.BarCodeRecognition.DataMatrixExtendedParameters value is different from the second.

public static bool operator !=(DataMatrixExtendedParameters first, DataMatrixExtendedParameters second)

Parameters

first DataMatrixExtendedParameters

A first compared value

second DataMatrixExtendedParameters

A second compared value

Returns

bool

true if first has the different value from second; otherwise, false.

 English