Share via


IXRStylusPoint::GetPressureFactor (Windows Embedded CE 6.0)

1/6/2010

This method retrieves the stylus pressure on the screen.

Syntax

virtual HRESULT STDMETHODCALLTYPE GetPressureFactor(
    __out float *pPressureFactor
) = 0;

Parameters

  • pPressureFactor
    [out] Points to a float that indicates the stylus pressure.

Return Values

Returns a standard HRESULT value.

Remarks

The permitted range is 0 (zero) to 1.0. Zero represents no stylus pressure on the screen, and 1.0 represents the highest pressure the stylus driver reports.

You can use for this property to change the IXRDrawingAttributes based on the stylus pressure captured in an IXRStylusPoint obtained from user input. Although PressureFactor comes from individual points, IXRDrawingAttributes is a property of the stroke and cannot vary from point-to-point.

.NET Framework Equivalent

System.Windows.Ink.StylusPoint.PressureFactor

Requirements

Header XamlRuntime.h
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRStylusPoint
IXRStylusPoint::SetPressureFactor