Click or drag to resize
CanvasCachedGeometry.CreateStroke Method (CanvasGeometry, Single, CanvasStrokeStyle)
Creates a new, cached version of the stroke of a geometry with the specified stroke width and stroke style.

Namespace:  Microsoft.Graphics.Canvas.Geometry
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public static CanvasCachedGeometry CreateStroke(
	CanvasGeometry geometry,
	float strokeWidth,
	CanvasStrokeStyle strokeStyle
)

Parameters

geometry
Type: Microsoft.Graphics.Canvas.Geometry.CanvasGeometry
strokeWidth
Type: System.Single
strokeStyle
Type: Microsoft.Graphics.Canvas.Geometry.CanvasStrokeStyle

Return Value

Type: CanvasCachedGeometry
Remarks
The cached version is created using the default flattening tolerance.
See Also