Matrix.MapRect 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.
Overloads
MapRect(RectF, RectF) |
Apply this matrix to the src rectangle, and write the transformed rectangle into dst. |
MapRect(RectF) |
Apply this matrix to the rectangle, and write the transformed rectangle back into it. |
MapRect(RectF, RectF)
Apply this matrix to the src rectangle, and write the transformed rectangle into dst.
[Android.Runtime.Register("mapRect", "(Landroid/graphics/RectF;Landroid/graphics/RectF;)Z", "GetMapRect_Landroid_graphics_RectF_Landroid_graphics_RectF_Handler")]
public virtual bool MapRect (Android.Graphics.RectF? dst, Android.Graphics.RectF? src);
[<Android.Runtime.Register("mapRect", "(Landroid/graphics/RectF;Landroid/graphics/RectF;)Z", "GetMapRect_Landroid_graphics_RectF_Landroid_graphics_RectF_Handler")>]
abstract member MapRect : Android.Graphics.RectF * Android.Graphics.RectF -> bool
override this.MapRect : Android.Graphics.RectF * Android.Graphics.RectF -> bool
Parameters
- dst
- RectF
Where the transformed rectangle is written.
- src
- RectF
The original rectangle to be transformed.
Returns
the result of calling rectStaysRect()
- Attributes
Remarks
Apply this matrix to the src rectangle, and write the transformed rectangle into dst. This is accomplished by transforming the 4 corners of src, and then setting dst to the bounds of those points.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
MapRect(RectF)
Apply this matrix to the rectangle, and write the transformed rectangle back into it.
[Android.Runtime.Register("mapRect", "(Landroid/graphics/RectF;)Z", "GetMapRect_Landroid_graphics_RectF_Handler")]
public virtual bool MapRect (Android.Graphics.RectF? rect);
[<Android.Runtime.Register("mapRect", "(Landroid/graphics/RectF;)Z", "GetMapRect_Landroid_graphics_RectF_Handler")>]
abstract member MapRect : Android.Graphics.RectF -> bool
override this.MapRect : Android.Graphics.RectF -> bool
Parameters
- rect
- RectF
The rectangle to transform.
Returns
the result of calling rectStaysRect()
- Attributes
Remarks
Apply this matrix to the rectangle, and write the transformed rectangle back into it. This is accomplished by transforming the 4 corners of rect, and then setting it to the bounds of those points
Java documentation for android.graphics.Matrix.mapRect(android.graphics.RectF)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.