Rectangle

Rectangle class

Namespace: Aspose.Barcode.Internal

Constructors

NameDescription
__constructRectangle constructor.

Methods

NameStaticDescription
constructYesRectangle constructor.
EMPTYYesRepresents a Quadrangle structure with its properties left uninitialized.Value: Quadrangle
fromLTRBYesFromLTRB Shared Method Produces a Rectangle structure from left, top, right, and bottom coordinates.
intersectYesIntersect Shared Method Produces a new Rectangle by intersecting 2 existing Rectangles. Returns null if there is no intersection.
isEmptyNo

Properties

NameRead/WriteDescription
BottomRead-only
HeightRead-only
LeftRead-only
RightRead-only
TopRead-only
WidthRead-only
XRead-only
YRead-only

Rectangle__construct($x, $y, $width, $height)

Rectangle constructor.

ParameterTypeDescription
$x``
$y``
$width``
$height``

constructconstruct($rectangleDto) (static)

Rectangle constructor.

ParameterTypeDescription
$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.

ParameterTypeDescription
$leftint
$topint
$rightint
$bottomint

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.

ParameterTypeDescription
$aRectangle
$bRectangle

isEmptyisEmpty()

Bottom

Access: Read-only

Height

Access: Read-only

Left

Access: Read-only

Access: Read-only

Top

Access: Read-only

Width

Access: Read-only

X

Access: Read-only

Y

Access: Read-only