Table of Contents

Method DrawRoundedRectangle

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

DrawRoundedRectangle(in RoundedRect, IDeviceBrush, float, IStrokeStyle?)

Draws the outline of the specified rounded rectangle using the specified stroke style.

void DrawRoundedRectangle(in RoundedRect roundedRect, IDeviceBrush brush, float strokeWidth = 1, IStrokeStyle? strokeStyle = null)

Parameters

roundedRect RoundedRect

The dimensions of the rounded rectangle to draw, in device-independent pixels.

brush IDeviceBrush

The brush used to paint the rounded rectangle's outline.

strokeWidth float

The width of the stroke, in device-independent pixels. The value must be greater than or equal to 0.0f. If this parameter isn't specified, it defaults to 1.0f. The stroke is centered on the line.

strokeStyle IStrokeStyle

The style of the rounded rectangle's stroke, or null to paint a solid stroke.