Skip to main content

GraphicsCache.CreateRoundedRectangle(Rectangle, CornerRadius) Method

Creates a rectangular path with rounded corners.

Namespace: DevExpress.Utils.Drawing

Assembly: DevExpress.Utils.v23.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

Declaration

public GraphicsPath CreateRoundedRectangle(
    Rectangle rect,
    CornerRadius radius
)

Parameters

Name Type Description
rect Rectangle

The rectangle that specifies the path.

radius DevExpress.Utils.Drawing.CornerRadius

The corner radius for the rectangle.

Returns

Type Description
GraphicsPath

The resulting GraphicsPath object.

See Also