
## Rectangle class

**Namespace:** `Aspose.Barcode.Internal`


## Constructors

| Name | Description |
| --- | --- |
| [__construct](#constructor) | Rectangle constructor. |

## Methods

| Name | Static | Description |
| --- | --- | --- |
| [construct](#construct) | Yes | Rectangle constructor. |
| [EMPTY](#empty) | Yes | Represents a Quadrangle structure with its properties left uninitialized.Value: Quadrangle |
| [fromLTRB](#fromltrb) | Yes | FromLTRB Shared Method Produces a Rectangle structure from left, top, right, and bottom coordinates. |
| [intersect](#intersect) | Yes | Intersect Shared Method Produces a new Rectangle by intersecting 2 existing Rectangles. Returns null if there is no intersection. |
| [isEmpty](#isempty) | No |  |

## Properties

| Name | Read/Write | Description |
| --- | --- | --- |
| [Bottom](#bottom) | Read-only |  |
| [Height](#height) | Read-only |  |
| [Left](#left) | Read-only |  |
| [Right](#right) | Read-only |  |
| [Top](#top) | Read-only |  |
| [Width](#width) | Read-only |  |
| [X](#x) | Read-only |  |
| [Y](#y) | Read-only |  |

### Rectangle__construct($x, $y, $width, $height) {#constructor}

Rectangle constructor.

| Parameter | Type | Description |
| --- | --- | --- |
| `$x` | `` |  |
| `$y` | `` |  |
| `$width` | `` |  |
| `$height` | `` |  |

### constructconstruct($rectangleDto) (static) {#construct}

Rectangle constructor.

| Parameter | Type | Description |
| --- | --- | --- |
| `$rectangleDto` | `` |  |

### EMPTYEMPTY() (static) {#empty}

Represents a Quadrangle structure with its properties left uninitialized.Value: Quadrangle

### fromLTRBfromLTRB(int $left, int $top, int $right, int $bottom) (static) {#fromltrb}

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}

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() {#isempty}

### Bottom {#bottom}

**Access:** Read-only

### Height {#height}

**Access:** Read-only

### Left {#left}

**Access:** Read-only

### Right {#right}

**Access:** Read-only

### Top {#top}

**Access:** Read-only

### Width {#width}

**Access:** Read-only

### X {#x}

**Access:** Read-only

### Y {#y}

**Access:** Read-only

