## ToGdiRectangle(Rectangle) {#togdirectangle}

Converts the [`Rectangle`](../../../aspose.imaging/rectangle/) to the Rectangle.

```csharp
public static Rectangle ToGdiRectangle(Rectangle rectangle)
```

| Parameter | Type | Description |
| --- | --- | --- |
| rectangle | Rectangle | The rectangle to convert. |

### Return Value

The converted Rectangle.

### See Also

* struct [Rectangle](../../../aspose.imaging/rectangle/)
* class [RectangleExtensions](../)
* namespace [Aspose.Imaging.Extensions](../../rectangleextensions/)
* assembly [Aspose.Imaging](../../../)

---

## ToGdiRectangle(RectangleF) {#togdirectangle_1}

Converts the [`RectangleF`](../../../aspose.imaging/rectanglef/) to the Rectangle.

```csharp
public static RectangleF ToGdiRectangle(RectangleF rectangle)
```

| Parameter | Type | Description |
| --- | --- | --- |
| rectangle | RectangleF | The rectangle to convert. |

### Return Value

The converted RectangleF.

### See Also

* struct [RectangleF](../../../aspose.imaging/rectanglef/)
* class [RectangleExtensions](../)
* namespace [Aspose.Imaging.Extensions](../../rectangleextensions/)
* assembly [Aspose.Imaging](../../../)


