BarCodeRegionParameters

BarCodeRegionParameters class

Represents the recognized barcode’s region and barcode angle

public class BarCodeRegionParameters : joint.BaseJavaClass

Constructors

NameDescription
BarCodeRegionParameters(object)Initializes a new instance of the BarCodeRegionParameters class.

Methods

NameDescription
convertJavaPoints(object)
equals(object)Returns a value indicating whether this instance is equal to a specified BarCodeRegionParameters value.
getAngleGets the angle of the barcode (0-360). Value: The angle for barcode (0-360).
getPointsGets Points array bounding barcode region Value: Returns Points array bounding barcode region.
getQuadrangleGets Quadrangle bounding barcode region Value: Returns Quadrangle bounding barcode region.
getRectangleGets Rectangle bounding barcode region Value: Returns Rectangle bounding barcode region.
hashCodeReturns the hash code for this instance.
init
toStringReturns a human-readable string representation of this BarCodeRegionParameters.

Fields

NameDescription
points
quad
rect

Examples

//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 ]);
let results = reader.readBarCodes();
for(let i = 0; i < results.length; i++)
{
let result = results[i];
console.log("BarCode CodeText: " + result.getCodeText());
console.log("BarCode Angle: " + result.getRegion().getAngle());
console.log("BarCode Quadrangle: " + result.getRegion().getQuadrangle());
}

See Also