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
RoundedRectThe dimensions of the rounded rectangle to draw, in device-independent pixels.
brush
IDeviceBrushThe brush used to paint the rounded rectangle's outline.
strokeWidth
floatThe 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
IStrokeStyleThe style of the rounded rectangle's stroke, or null to paint a solid stroke.