Class BarCodeRegionParameters
java.lang.Object
com.aspose.barcode.barcoderecognition.BarCodeRegionParameters
Represents the recognized barcode's region and barcode angle
This sample shows how to get barcode Angle and bounding quadrangle valuesBarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Code128, "12345"); generator.save("test.png"); BarCodeReader reader = new BarCodeReader("test.png", DecodeType.CODE_39_STANDARD, DecodeType.CODE_128); for(BarCodeResult result : reader.readBarCodes()) { System.out.println("BarCode CodeText: " + result.getCodeText()); System.out.println("BarCode Angle: " + result.getRegion().getAngle()); System.out.println("BarCode Quadrangle: " + result.getRegion().getQuadrangle()); }
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns a value indicating whether this instance is equal to a specifiedBarCodeRegionParametersvalue.doublegetAngle()Gets the angle of the barcode (0-360).android.graphics.Point[]GetsPoints array bounding barcode regionGetsAspose.BarCode.BarCodeRecognition.Quadranglebounding barcode regionandroid.graphics.RectGetsSystem.Drawing.Rectanglebounding barcode regioninthashCode()Returns the hash code for this instance.toString()Returns a human-readable string representation of thisBarCodeRegionParameters.
-
Method Details
-
getQuadrangle
Gets
Value: ReturnsAspose.BarCode.BarCodeRecognition.Quadranglebounding barcode regionAspose.BarCode.BarCodeRecognition.Quadranglebounding barcode region -
getAngle
public double getAngle()Gets the angle of the barcode (0-360).
Value: The angle for barcode (0-360). -
getPoints
public android.graphics.Point[] getPoints()Gets
Value: ReturnsPoints array bounding barcode regionPoints array bounding barcode region -
getRectangle
public android.graphics.Rect getRectangle()Gets
Value: ReturnsSystem.Drawing.Rectanglebounding barcode regionSystem.Drawing.Rectanglebounding barcode region -
equals
Returns a value indicating whether this instance is equal to a specified
BarCodeRegionParametersvalue. -
hashCode
public int hashCode()Returns the hash code for this instance.
-
toString
Returns a human-readable string representation of this
BarCodeRegionParameters.
-