Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 2.74 KB

inkdrawingattributes_pentip.md

File metadata and controls

34 lines (25 loc) · 2.74 KB
-api-id -api-type -api-device-family-note
P:Windows.UI.Input.Inking.InkDrawingAttributes.PenTip
winrt property
xbox

Windows.UI.Input.Inking.InkDrawingAttributes.PenTip

-description

Gets or sets a value that indicates the shape of the pen tip when you draw an InkStroke.

-property-value

The shape of the pen/stylus tip. The default is Circle.

-remarks

Support various calligraphic effects using the PenTipShape property with PenTip.

-examples

The following example demonstrates how to set the PenTip attribute for all strokes managed by an InkManager object (inkManager).

var inkManager = new Windows.UI.Input.Inking.InkManager();
var drawingAttributes = new Windows.UI.Input.Inking.InkDrawingAttributes();
drawingAttributes.penTip = Windows.UI.Input.Inking.PenTipShape.rectangle;
inkManager.setDefaultDrawingAttributes(drawingAttributes);

-see-also

PenTipTransform, 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