IPointerPointTransform IPointerPointTransform IPointerPointTransform Interface

Definition

Provides generalized transformation functions.

public interface IPointerPointTransformpublic interface IPointerPointTransformPublic Interface IPointerPointTransform
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

Do not call this interface directly. IPointerPointTransform is used by a GestureRecognizer to get transformation information for an input pointer.

Properties

Inverse Inverse Inverse

Gets the inverse of the specified transformation.

public IPointerPointTransform Inverse { get; }public IPointerPointTransform Inverse { get; }Public ReadOnly Property Inverse As IPointerPointTransform
Value
IPointerPointTransform IPointerPointTransform IPointerPointTransform

The inverse of the pointer transformation.

Attributes

Methods

TransformBounds(Rect) TransformBounds(Rect) TransformBounds(Rect)

Transforms the specified bounding rectangle.

public Rect TransformBounds(Rect rect)public Rect TransformBounds(Rect rect)Public Function TransformBounds(rect As Rect) As Rect
Parameters
rect
Rect Rect Rect

The bounding rectangle to transform.

Returns

The smallest, axis-aligned bounding box that encloses rect after the transformation. (An axis-aligned bounding box is one which has all sides parallel to the coordinate axes.)

Attributes

Remarks

rect is typically the ContactRect associated with the input point that is transformed through the TryTransform method. rect must be recalculated as it does not change with the transformation of the input point.

This method should return an HResult that identifies whether the transformation was successful.

TryTransform(Point, Point) TryTransform(Point, Point) TryTransform(Point, Point)

Attempts to perform the transformation on the specified input point.

public bool TryTransform(Point inPoint, Point outPoint)public bool TryTransform(Point inPoint, Point outPoint)Public Function TryTransform(inPoint As Point, outPoint As Point) As bool
Parameters
inPoint
Point Point Point

The original input point.

outPoint
Point Point Point

The transformed input point.

Returns
bool bool bool

True if inPoint was transformed successfully; otherwise, false.

Attributes