CanvasGeometryCreateInk Method (ICanvasResourceCreator, IEnumerableInkStroke, Matrix3x2, Single) |
Namespace: Microsoft.Graphics.Canvas.Geometry
public static CanvasGeometry CreateInk( ICanvasResourceCreator resourceCreator, IEnumerable<InkStroke> inkStrokes, Matrix3x2 transform, float flatteningTolerance )
Uses the specified flattening tolerance and the specified transform on the input strokes.
Geometry created from ink typically contains many overlapping stroke segments and circles. After using CreateInk, it may be desirable to clean up these self-intersections by calling Outline.
Note that CanvasGeometry does not support pencil ink strokes (InkDrawingAttributesKind.Pencil). Passing pencil strokes will produce an empty geometry.