Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

InkDrawingAttributes.IgnorePressure | ignorePressure property

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

Syntax


var ignorePressure = inkDrawingAttributes.ignorePressure;
inkDrawingAttributes.ignorePressure = ignorePressure;

Property value

Type: Boolean [JavaScript] | System.Boolean [.NET] | Platform::Boolean [C++]

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 ISF stream.
PasteDepending on the implementation, pressure data from ISF stream may be ignored during rendering.Depending on the implementation, pressure data from ISF stream may be applied during rendering.
SaveNo effect. Pressure data, if present, is written to the ISF stream.No effect. Pressure data, if present, is written to the ISF stream
LoadDepending on the implementation, pressure data from ISF stream may be ignored during rendering.Depending on the implementation, pressure data from 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);


For the complete example, see Ink App sample.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Input.Inking
Windows::UI::Input::Inking [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.UI.Input.Inking
Windows::UI::Input::Inking [C++]

Metadata

Windows.winmd

See also

InkDrawingAttributes
Pressure
Responding to pen and stylus input
Ink App sample

 

 

Show:
© 2015 Microsoft