PeachDrawing
PeachDrawing.PathStroker
PathStroker.Stroke(GraphicsPath, Pen, GraphicsPath, double) Method
Adds to destination the area a stroke of path with pen covers: the pen’s width, caps, joins, miter limit and dashes all apply. The outline is made of straight segments (round caps and joins are flattened) and is meant to be filled with the Nonzero rule, which is set on destination; where dashes, joins or overlapping parts of the path make pieces overlap, that rule fills their union.
public static void Stroke(PeachDrawing.Core.GraphicsPath path, PeachDrawing.Core.Pen pen, PeachDrawing.Core.GraphicsPath destination, double tolerance=0.1);
Parameters
path GraphicsPath
the path to stroke
pen Pen
the pen to stroke it with; only its geometry (width, caps, joins, miter limit, dashes) is used, not its paint
destination GraphicsPath
the path the outline is added to; create it with GetGraphicsPath() to draw it with that canvas
tolerance System.Double
how far the flattened outline may stray from the true curves, in the path’s own units
Exceptions
System.ArgumentNullException
an argument is null
Remarks
A pen whose width is zero or less strokes nothing here: on a canvas that draws such a pen as a one-pixel hairline, the hairline’s width depends on the device, and an outline has none.