new OneDExtendedParameters()

Example

//This sample shows how to get 1D barcode value and checksum
let generator = new BarcodeGenerator(EncodeTypes.EAN_13, "1234567890128");
generator.save("test.png");
let reader = new BarCodeReader("test.png", null,  DecodeType.EAN_13);
reader.readBarCodes().forEach(function(result, i, results)
{
   console.log("BarCode Type: " + result.getCodeTypeName());
   console.log("BarCode CodeText: " + result.getCodeText());
   console.log("BarCode Value: " + result.getExtended().getOneD().getValue());
   console.log("BarCode Checksum: " + result.getExtended().getOneD().getCheckSum());
});

Methods

equals(obj)

Returns a value indicating whether this instance is equal to a specified OneDExtendedParameters value.

Parameter

Name Type Optional Description

obj

 

 

An System.Object value to compare to this instance.

Returns

true if obj has the same value as this instance; otherwise, false.

getCheckSum()

Gets the checksum for 1D barcodes. Value: The checksum for 1D barcode.

getValue()

Gets the codetext of 1D barcodes without checksum. Value: The codetext of 1D barcodes without checksum.

hashCode()

Returns the hash code for this instance.

Returns

A 32-bit signed integer hash code.

isEmpty()

Tests whether all parameters has only default values Value: Returns {@code true} if all parameters has only default values; otherwise, {@code false}.

toString()

Returns a human-readable string representation of this OneDExtendedParameters.

Returns

A string that represents this OneDExtendedParameters.