BarCodeRegionParameters

BarCodeRegionParameters

Represents the recognized barcode's region and barcode angle

Constructor

new BarCodeRegionParameters()

Source:
Example
//This sample shows how to get barcode Angle and bounding quadrangle values
let generator = new BarcodeGenerator(EncodeTypes.Code128, "12345");
generator.save("test.png");
let reader = new BarCodeReader("test.png", null,  [ DecodeType.CODE_39, DecodeType.CODE_128 ]);
reader.readBarCodes().forEach(function(result, i, results)
{
   console.log("BarCode CodeText: " + result.getCodeText());
   console.log("BarCode Angle: " + result.getRegion().getAngle());
   console.log("BarCode Quadrangle: " + result.getRegion().getQuadrangle());
});

Methods

equals(obj)

Returns a value indicating whether this instance is equal to a specified BarCodeRegionParameters value.
Parameters:
Name Type Description
obj An System.Object value to compare to this instance.
Returns:
Type Description
true if obj has the same value as this instance; otherwise, false.
Source:

getAngle()

Gets the angle of the barcode (0-360). Value: The angle for barcode (0-360).
Source:

getPoints()

Gets Points array bounding barcode region Value: Returns Points array bounding barcode region
Source:

getQuadrangle()

Gets Quadrangle bounding barcode region Value: Returns Quadrangle bounding barcode region
Source:

getRectangle()

Gets Rectangle bounding barcode region Value: Returns Rectangle bounding barcode region
Source:

hashCode()

Returns the hash code for this instance.
Returns:
Type Description
A 32-bit signed integer hash code.
Source:

toString()

Returns a human-readable string representation of this BarCodeRegionParameters.
Returns:
Type Description
A string that represents this BarCodeRegionParameters.
Source: