InkDrawingAttributes.IgnorePressure Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
property bool IgnorePressure { bool get(); void set(bool value); };
bool IgnorePressure();
void IgnorePressure(bool value);
public bool IgnorePressure { get; set; }
var boolean = inkDrawingAttributes.ignorePressure;
inkDrawingAttributes.ignorePressure = boolean;
Public Property IgnorePressure As Boolean
Property Value
bool
true if pressure is ignored; otherwise false. The default value is false.
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);
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.
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. |
Applies to
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