Table of Contents

Method DrawEllipse

Namespace
PaintDotNet.Direct2D1
Assembly
PaintDotNet.Windows.dll

DrawEllipse(Ellipse, IDeviceBrush, float, IStrokeStyle?)

Draws the outline of the specified ellipse using the specified stroke style.

void DrawEllipse(Ellipse ellipse, IDeviceBrush brush, float strokeWidth = 1, IStrokeStyle? strokeStyle = null)

Parameters

ellipse Ellipse

The position and radius of the ellipse to draw, in device-independent pixels.

brush IDeviceBrush

The brush used to paint the ellipse'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 stroke to apply to the ellipse's outline, or null to paint a solid stroke.