GraphicsPath.GetBounds

GetBounds()

Returns a rectangle that bounds this GraphicsPath.

public RectangleF GetBounds()

Return Value

A RectangleF that represents a rectangle that bounds this GraphicsPath.

See Also


GetBounds(Matrix)

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

public RectangleF GetBounds(Matrix matrix)
ParameterTypeDescription
matrixMatrixThe 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.

See Also


GetBounds(Matrix, Pen)

Returns a rectangle that bounds this GraphicsPath when the current path is transformed by the specified Matrix and drawn with the specified Pen.

public RectangleF GetBounds(Matrix matrix, Pen pen)
ParameterTypeDescription
matrixMatrixThe 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.
penPenThe Pen with which to draw the GraphicsPath.

Return Value

A RectangleF that represents a rectangle that bounds this GraphicsPath.

See Also