Udostępnij za pośrednictwem


Matrix.MapRect Method

Definition

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.

Java documentation for android.graphics.Matrix.mapRect(android.graphics.RectF, 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.

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.

Applies to