Class BarCodeRegionParameters

java.lang.Object
com.aspose.barcode.barcoderecognition.BarCodeRegionParameters

public final class BarCodeRegionParameters extends Object

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("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 Type
    Method
    Description
    boolean
    Returns a value indicating whether this instance is equal to a specified BarCodeRegionParameters value.
    double
    Gets the angle of the barcode (0-360).
    android.graphics.Point[]
    Gets Points array bounding barcode region
    Gets Aspose.BarCode.BarCodeRecognition.Quadrangle bounding barcode region
    android.graphics.Rect
    Gets System.Drawing.Rectangle bounding barcode region
    int
    Returns the hash code for this instance.
    Returns a human-readable string representation of this BarCodeRegionParameters.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • getQuadrangle

      public Quadrangle getQuadrangle()

      Gets Aspose.BarCode.BarCodeRecognition.Quadrangle bounding barcode region

      Value: Returns Aspose.BarCode.BarCodeRecognition.Quadrangle bounding 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 Points array bounding barcode region

      Value: Returns Points array bounding barcode region
    • getRectangle

      public android.graphics.Rect getRectangle()

      Gets System.Drawing.Rectangle bounding barcode region

      Value: Returns System.Drawing.Rectangle bounding barcode region
    • equals

      public boolean equals(Object obj)

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

      Overrides:
      equals in class Object
      Parameters:
      obj - An System.Object value to compare to this instance.
      Returns:
      <b>true</b> if obj has the same value as this instance; otherwise, <b>false</b>.
    • hashCode

      public int hashCode()

      Returns the hash code for this instance.

      Overrides:
      hashCode in class Object
      Returns:
      A 32-bit signed integer hash code.
    • toString

      public String toString()

      Returns a human-readable string representation of this BarCodeRegionParameters.

      Overrides:
      toString in class Object
      Returns:
      A string that represents this BarCodeRegionParameters.