Skip to main content
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;

public bool IgnorePressure { get; set; }

Public Property IgnorePressure As Boolean

public:
property bool IgnorePressure { 
   bool get();
   void set (bool value);
}

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, introduced version 10.0.10240.0 [for Xbox, see UWP features that aren't yet supported on Xbox]

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
Pen and stylus interactions
Samples
Ink sample
Simple ink sample
Complex ink sample