Method DrawGeometry
- Namespace
- PaintDotNet.Direct2D1
- Assembly
- PaintDotNet.Windows.dll
DrawGeometry(IGeometry, IDeviceBrush, float, IStrokeStyle?)
Draws the outline of the specified geometry using the specified stroke style.
void DrawGeometry(IGeometry geometry, IDeviceBrush brush, float strokeWidth = 1, IStrokeStyle? strokeStyle = null)
Parameters
geometry
IGeometryThe geometry to draw.
brush
IDeviceBrushThe brush used to paint the geometry's stroke.
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 stroke to apply to the geometry's outline, or null to paint a solid stroke.