Rectangle
Contents
[
Hide
]Rectangle class
Namespace: Aspose.Barcode.Internal
Constructors
| Name | Description |
|---|---|
| __construct | Rectangle constructor. |
Methods
| Name | Static | Description |
|---|---|---|
| construct | Yes | Rectangle constructor. |
| EMPTY | Yes | Represents a Quadrangle structure with its properties left uninitialized.Value: Quadrangle |
| fromLTRB | Yes | FromLTRB Shared Method Produces a Rectangle structure from left, top, right, and bottom coordinates. |
| intersect | Yes | Intersect Shared Method Produces a new Rectangle by intersecting 2 existing Rectangles. Returns null if there is no intersection. |
| isEmpty | No |
Properties
| Name | Read/Write | Description |
|---|---|---|
| Bottom | Read-only | |
| Height | Read-only | |
| Left | Read-only | |
| Right | Read-only | |
| Top | Read-only | |
| Width | Read-only | |
| X | Read-only | |
| Y | Read-only |
Rectangle__construct($x, $y, $width, $height)
Rectangle constructor.
| Parameter | Type | Description |
|---|---|---|
$x | `` | |
$y | `` | |
$width | `` | |
$height | `` |
constructconstruct($rectangleDto) (static)
Rectangle constructor.
| Parameter | Type | Description |
|---|---|---|
$rectangleDto | `` |
EMPTYEMPTY() (static)
Represents a Quadrangle structure with its properties left uninitialized.Value: Quadrangle
fromLTRBfromLTRB(int $left, int $top, int $right, int $bottom) (static)
FromLTRB Shared Method Produces a Rectangle structure from left, top, right, and bottom coordinates.
| Parameter | Type | Description |
|---|---|---|
$left | int | |
$top | int | |
$right | int | |
$bottom | int |
intersectintersect(Rectangle $a, Rectangle $b) (static)
Intersect Shared Method Produces a new Rectangle by intersecting 2 existing Rectangles. Returns null if there is no intersection.
| Parameter | Type | Description |
|---|---|---|
$a | Rectangle | |
$b | Rectangle |
isEmptyisEmpty()
Bottom
Access: Read-only
Height
Access: Read-only
Left
Access: Read-only
Right
Access: Read-only
Top
Access: Read-only
Width
Access: Read-only
X
Access: Read-only
Y
Access: Read-only