Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 4.08 KB

inkdrawingattributes_ignorepressure.md

File metadata and controls

43 lines (32 loc) · 4.08 KB
-api-id -api-type -api-device-family-note
P:Windows.UI.Input.Inking.InkDrawingAttributes.IgnorePressure
winrt property
xbox

Windows.UI.Input.Inking.InkDrawingAttributes.IgnorePressure

-description

Gets or sets a value that indicates whether the pressure of the contact on the digitizer surface is ignored when you draw an InkStroke.

-property-value

true if pressure is ignored; otherwise false. The default value is false.

-remarks

If IgnorePressure is set to false, the user can modify the thickness of a stroke by adjusting the amount of pressure applied to the digitizer surface while writing.

The following actions may be affected by the IgnorePressure setting.

IgnorePressureTrueFalse
CopyNo effect. Pressure data, if present, is written to the Ink Serialized Format (ISF) stream.No effect. Pressure data, if present, is written to the Ink Serialized Format (ISF) stream.
PasteDepending on the implementation, pressure data from Ink Serialized Format (ISF) stream may be ignored during rendering.Depending on the implementation, pressure data from Ink Serialized Format (ISF) stream may be applied during rendering.
SaveNo effect. Pressure data, if present, is written to the Ink Serialized Format (ISF) stream.No effect. Pressure data, if present, is written to the Ink Serialized Format (ISF) stream
LoadDepending on the implementation, pressure data from Ink Serialized Format (ISF) stream may be ignored during rendering.Depending on the implementation, pressure data from Ink Serialized Format (ISF) stream may be applied during rendering.

-examples

The following example demonstrates how to set the IgnorePressure 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();
drawingAttributes.ignorePressure = true;
inkManager.setDefaultDrawingAttributes(drawingAttributes);

-see-also

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