IPointerPointTransform IPointerPointTransform IPointerPointTransform IPointerPointTransform Interface

Provides generalized transformation functions.

Syntax

Declaration

public interface IPointerPointTransformpublic interface IPointerPointTransformPublic Interface IPointerPointTransformpublic interface IPointerPointTransform

Remarks

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

Properties summary

Gets the inverse of the specified transformation.

Methods summary

Transforms the specified bounding rectangle.

Attempts to perform the transformation on the specified input point.

Properties

Methods

  • TransformBounds(Rect)
    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 Rectpublic Rect TransformBounds(Rect rect)

    Parameters

    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.)

    Remarks

    rect is typically the ContactRect associated with the input point that is transformed through the TryTransform(Point, Point) 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)
    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 boolpublic bool TryTransform(Point inPoint, Point outPoint)

    Parameters

    Returns

    • bool
      bool
      bool
      bool

      True if inPoint was transformed successfully; otherwise, false.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.GuidAttribute

Details

Assembly

Windows.UI.Input.dll