Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 2.76 KB

inkdrawingattributes_fittocurve.md

File metadata and controls

37 lines (26 loc) · 2.76 KB
-api-id -api-type -api-device-family-note
P:Windows.UI.Input.Inking.InkDrawingAttributes.FitToCurve
winrt property
xbox

Windows.UI.Input.Inking.InkDrawingAttributes.FitToCurve

-description

Gets or sets a value that indicates whether a Bezier curve or a collection of straight line segments is used to draw an InkStroke.

-property-value

true if a Bezier curve is used; otherwise false. The default value is true.

-remarks

-examples

The following example demonstrates how to set the FitToCurve attribute for all strokes managed by this InkManager object (inkManager) that are created after the SetDefaultDrawingAttributes method call.

var inkManager = new Windows.UI.Input.Inking.InkManager();
var drawingAttributes = 
     new Windows.UI.Input.Inking.InkDrawingAttributes();
// True is the Default value for fitToCurve.
drawingAttributes.fitToCurve = false;
inkManager.setDefaultDrawingAttributes(drawingAttributes);

-see-also

Pen and stylus interactions, Get started: Support ink in your UWP app, Ink analysis sample (basic) (C#), Ink handwriting recognition sample (C#), Save and load ink strokes from an Ink Serialized Format (ISF) file, Save and load ink strokes from the clipboard, Ink toolbar location and orientation sample (basic), Ink toolbar location and orientation sample (dynamic), Coloring book sample, Family notes sample, Inking sample (JavaScript), Simple inking sample (C#/C++), Complex inking sample (C++), Ink analysis sample