# GraphicsPath.GetBounds Method (Matrix)

.NET Framework 3.0
Returns a rectangle that bounds this GraphicsPath when this path is transformed by the specified Matrix.

Namespace: System.Drawing.Drawing2D
Assembly: System.Drawing (in system.drawing.dll)

## Syntax

```public RectangleF GetBounds (
Matrix matrix
)
```
```public RectangleF GetBounds (
Matrix matrix
)
```
```public function GetBounds (
matrix : Matrix
) : RectangleF
```
```Not applicable.
```

#### Parameters

matrix

The Matrix that specifies a transformation to be applied to this path before the bounding rectangle is calculated. This path is not permanently transformed; the transformation is used only during the process of calculating the bounding rectangle.

#### Return Value

A RectangleF that represents a rectangle that bounds this GraphicsPath.

## Remarks

The size of the returned bounding rectangle is influenced by the type of end caps, pen width, and pen miter limit, and therefore produces a "loose fit" to the bounded path. The approximate formula is: the initial bounding rectangle is inflated by pen width, and this result is multiplied by the miter limit, plus some additional margin to allow for end caps.

## Example

For an example, see GetBounds.

## Platforms

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

## Version Information

#### .NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0