public final class BarCodeRegionParameters
extends java.lang.Object
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("c:\\test.png"); BarCodeReader reader = new BarCodeReader("c:\\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()); }
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified
BarCodeRegionParameters value. |
double |
getAngle()
Gets the angle of the barcode (0-360).
|
java.awt.Point[] |
getPoints()
Gets
Point s array bounding barcode region |
Quadrangle |
getQuadrangle()
Gets
Aspose.BarCode.BarCodeRecognition.Quadrangle bounding barcode region |
java.awt.Rectangle |
getRectangle()
Gets
System.Drawing.Rectangle bounding barcode region |
int |
hashCode()
Returns the hash code for this instance.
|
static boolean |
op_Equality(BarCodeRegionParameters first,
BarCodeRegionParameters second)
Returns a value indicating whether the first
BarCodeRegionParameters value is equal to the second. |
static boolean |
op_Inequality(BarCodeRegionParameters first,
BarCodeRegionParameters second)
Returns a value indicating if the first
BarCodeRegionParameters value is different from the second. |
java.lang.String |
toString()
Returns a human-readable string representation of this
BarCodeRegionParameters . |
public Quadrangle getQuadrangle()
Gets Aspose.BarCode.BarCodeRecognition.Quadrangle
bounding barcode region
Aspose.BarCode.BarCodeRecognition.Quadrangle
bounding barcode regionpublic double getAngle()
Gets the angle of the barcode (0-360).
Value: The angle for barcode (0-360).public java.awt.Point[] getPoints()
Gets Point
s array bounding barcode region
Point
s array bounding barcode regionpublic java.awt.Rectangle getRectangle()
Gets System.Drawing.Rectangle
bounding barcode region
System.Drawing.Rectangle
bounding barcode regionpublic boolean equals(java.lang.Object obj)
Returns a value indicating whether this instance is equal to a specified BarCodeRegionParameters
value.
equals
in class java.lang.Object
obj
- An System.Object value to compare to this instance.<b>true</b>
if obj has the same value as this instance; otherwise, <b>false</b>
.public static boolean op_Equality(BarCodeRegionParameters first, BarCodeRegionParameters second)
Returns a value indicating whether the first BarCodeRegionParameters
value is equal to the second.
first
- A first compared valuesecond
- A second compared value<b>true</b>
if first has the same value as second; otherwise, <b>false</b>
.public static boolean op_Inequality(BarCodeRegionParameters first, BarCodeRegionParameters second)
Returns a value indicating if the first BarCodeRegionParameters
value is different from the second.
first
- A first compared valuesecond
- A second compared value<b>true</b>
if first has the different value from second; otherwise, <b>false</b>
.public int hashCode()
Returns the hash code for this instance.
hashCode
in class java.lang.Object
public java.lang.String toString()
Returns a human-readable string representation of this BarCodeRegionParameters
.
toString
in class java.lang.Object
BarCodeRegionParameters
.