## GraphicsPath::GetBounds method


Returns a [RectangleF](../../../system.drawing/rectanglef/) object that represents a rectangle that bounds the path represented by the current object when it is transformed with the specified matrix.

```cpp
RectangleF System::Drawing::Drawing2D::GraphicsPath::GetBounds(const MatrixPtr &matrix=nullptr, const SharedPtr<Pen> &pen=nullptr) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| matrix | const MatrixPtr\& | The transform matrix |
| pen | const SharedPtr\<Pen\>\& | A [Pen](../../../system.drawing/pen/) to calculate the bounding rectangle. |

## See Also

* Class [RectangleF](../../../system.drawing/rectanglef/)
* Typedef [MatrixPtr](../../matrixptr/)
* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Pen](../../../system.drawing/pen/)
* Class [GraphicsPath](../)
* Namespace [System::Drawing::Drawing2D](../../)
* Library [Aspose.PDF for C++](../../../)
