BarCodeRegionParameters

Inheritance: java.lang.Object

public final class BarCodeRegionParameters

Represents the recognized barcode’s region and barcode angle


This sample shows how to get barcode Angle and bounding quadrangle values
 
 BarcodeGenerator 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());
 }

Methods

MethodDescription
equals(Object obj)Returns a value indicating whether this instance is equal to a specified BarCodeRegionParameters value.
getAngle()Gets the angle of the barcode (0-360).
getClass()
getPoints()Gets Point s array bounding barcode region
getQuadrangle()Gets Aspose.BarCode.BarCodeRecognition.Quadrangle bounding barcode region
getRectangle()Gets System.Drawing.Rectangle bounding barcode region
hashCode()Returns the hash code for this instance.
notify()
notifyAll()
toString()Returns a human-readable string representation of this BarCodeRegionParameters .
wait()
wait(long arg0)
wait(long arg0, int arg1)

equals(Object obj)

public boolean equals(Object obj)

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

Parameters:

ParameterTypeDescription
objjava.lang.ObjectAn System.Object value to compare to this instance.

Returns: boolean - true if obj has the same value as this instance; otherwise, false .

getAngle()

public double getAngle()

Gets the angle of the barcode (0-360).

Value: The angle for barcode (0-360).

Returns: double

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getPoints()

public Point[] getPoints()

Gets Point s array bounding barcode region

Value: Returns Point s array bounding barcode region

Returns: java.awt.Point[]

getQuadrangle()

public Quadrangle getQuadrangle()

Gets Aspose.BarCode.BarCodeRecognition.Quadrangle bounding barcode region

Value: Returns Aspose.BarCode.BarCodeRecognition.Quadrangle bounding barcode region

Returns: Quadrangle

getRectangle()

public Rectangle getRectangle()

Gets System.Drawing.Rectangle bounding barcode region

Value: Returns System.Drawing.Rectangle bounding barcode region

Returns: java.awt.Rectangle

hashCode()

public int hashCode()

Returns the hash code for this instance.

Returns: int - A 32-bit signed integer hash code.

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns a human-readable string representation of this BarCodeRegionParameters .

Returns: java.lang.String - A string that represents this BarCodeRegionParameters .

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int