## Intersect(Rectangle, Rectangle)

Returns a third [`Rectangle`](../) structure that represents the intersection of two other [`Rectangle`](../) structures. If there is no intersection, an empty [`Rectangle`](../) is returned.

```csharp
public static Rectangle Intersect(Rectangle a, Rectangle b)
```

| Parameter | Type | Description |
| --- | --- | --- |
| a | Rectangle | A first rectangle to intersect. |
| b | Rectangle | A second rectangle to intersect. |

### Return Value

A [`Rectangle`](../) that represents the intersection of *a* and *b*.

### See Also

* struct [Rectangle](../)
* namespace [Aspose.Imaging](../../rectangle/)
* assembly [Aspose.Imaging](../../../)

---

## Intersect(Rectangle)

Replaces this [`Rectangle`](../) with the intersection of itself and the specified [`Rectangle`](../).

```csharp
public void Intersect(Rectangle rect)
```

| Parameter | Type | Description |
| --- | --- | --- |
| rect | Rectangle | The [`Rectangle`](../) with which to intersect. |

### See Also

* struct [Rectangle](../)
* namespace [Aspose.Imaging](../../rectangle/)
* assembly [Aspose.Imaging](../../../)


