Skip to main content
InkDrawingAttributes.IgnorePressure | ignorePressure property

Applies to Windows only

Gets or sets a value that indicates whether the pressure of the pen tip 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 with the pen device.

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

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