IPointerPointTransform.TryTransformBounds(Rect, Rect) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Transforms the specified bounding rectangle.
public:
bool TryTransformBounds(Rect inRect, [Out] Rect & outRect);
bool TryTransformBounds(Rect const& inRect, [Out] Rect & outRect);
public bool TryTransformBounds(Rect inRect, out Rect outRect);
Public Function TryTransformBounds (inRect As Rect, ByRef outRect As Rect) As Boolean
Parameters
- inRect
- Rect
The bounding rectangle to transform.
- outRect
- Rect
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.)
Returns
bool
True, if transform was successful. Otherwise, false.
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.