-api-id | -api-type | -api-device-family-note |
---|---|---|
P:Windows.UI.Input.Inking.InkDrawingAttributes.IgnorePressure |
winrt property |
xbox |
Gets or sets a value that indicates whether the pressure of the contact on the digitizer surface is ignored when you draw an InkStroke.
true if pressure is ignored; otherwise false. The default value is false.
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.
IgnorePressure | True | False |
---|---|---|
Copy | No 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. |
Paste | Depending 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. |
Save | No 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 |
Load | Depending 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. |
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);
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