次の方法で共有


IXRStylusPoint::GetPressureFactor (Compact 2013)

3/28/2014

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.Input.StylusPoint.PressureFactor

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRStylusPoint
IXRStylusPoint::SetPressureFactor