Aspose.Barcode for PHP via Java Generation and Recognition API docs

Inherits BaseJavaClass.

Public Member Functions

 getQuadrangle ()
 
 getAngle ()
 
 getPoints ()
 
 getRectangle ()
 
 equals (BarCodeRegionParameters $obj)
 
 hashCode ()
 
 toString ()
 
- Public Member Functions inherited from BaseJavaClass
 __construct ($javaClass)
 
 getJavaClass ()
 
 getJavaClassName ()
 
 isNull ()
 
 printJavaClassName ()
 

Protected Member Functions

 init ()
 
- Protected Member Functions inherited from BaseJavaClass
 setJavaClass ($javaClass)
 

Static Private Member Functions

static convertJavaPoints ($javaPoints)
 

Private Attributes

 $quad
 
 $rect
 
 $points
 

Detailed Description

Represents the recognized barcode's region and barcode angle

This sample shows how to get barcode Angle and bounding quadrangle values

$generator = new BarcodeGenerator(EncodeTypes::Code128, "12345");
$generator->save("test.png");
$reader = new BarCodeReader("test.png", null, array( DecodeType::CODE_39, DecodeType::CODE_128));
foreach($reader->readBarCodes() as $result)
{
print("BarCode CodeText: ".$result->getCodeText());
print("BarCode Angle: ".$result->getRegion()->getAngle());
print("BarCode Quadrangle: ".$result->getRegion()->getQuadrangle());
}

Member Function Documentation

◆ convertJavaPoints()

static BarCodeRegionParameters::convertJavaPoints (   $javaPoints)
staticprivate

◆ equals()

BarCodeRegionParameters::equals ( BarCodeRegionParameters  $obj)

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

Parameters
BarCodeRegionParameters$objAn System.Object value to compare to this instance.
Returns
bool true if obj has the same value as this instance; otherwise, false.

◆ getAngle()

BarCodeRegionParameters::getAngle ( )
Returns
float Gets the angle of the barcode (0-360). Value: The angle for barcode (0-360).
Exceptions
BarcodeException

◆ getPoints()

BarCodeRegionParameters::getPoints ( )
Returns
array Gets Points array bounding barcode region Value: Returns Points array bounding barcode region

◆ getQuadrangle()

BarCodeRegionParameters::getQuadrangle ( )
Returns
Quadrangle Gets Quadrangle bounding barcode region Value: Returns Quadrangle bounding barcode region

◆ getRectangle()

BarCodeRegionParameters::getRectangle ( )
Returns
Rectangle Gets Rectangle bounding barcode region Value: Returns Rectangle bounding barcode region

◆ hashCode()

BarCodeRegionParameters::hashCode ( )

Returns the hash code for this instance.

Returns
int A 32-bit signed integer hash code.

◆ init()

BarCodeRegionParameters::init ( )
protected

Reimplemented from BaseJavaClass.

◆ toString()

BarCodeRegionParameters::toString ( )

Returns a human-readable string representation of this BarCodeRegionParameters.

Returns
string A string that represents this BarCodeRegionParameters.

Member Data Documentation

◆ $points

BarCodeRegionParameters::$points
private

◆ $quad

BarCodeRegionParameters::$quad
private

◆ $rect

BarCodeRegionParameters::$rect
private