Partager via


Matrix.SetRectToRect(RectF, RectF, Matrix+ScaleToFit) Method

Definition

Set the matrix to the scale and translate values that map the source rectangle to the destination rectangle, returning true if the the result can be represented.

[Android.Runtime.Register("setRectToRect", "(Landroid/graphics/RectF;Landroid/graphics/RectF;Landroid/graphics/Matrix$ScaleToFit;)Z", "GetSetRectToRect_Landroid_graphics_RectF_Landroid_graphics_RectF_Landroid_graphics_Matrix_ScaleToFit_Handler")]
public virtual bool SetRectToRect (Android.Graphics.RectF? src, Android.Graphics.RectF? dst, Android.Graphics.Matrix.ScaleToFit? stf);
[<Android.Runtime.Register("setRectToRect", "(Landroid/graphics/RectF;Landroid/graphics/RectF;Landroid/graphics/Matrix$ScaleToFit;)Z", "GetSetRectToRect_Landroid_graphics_RectF_Landroid_graphics_RectF_Landroid_graphics_Matrix_ScaleToFit_Handler")>]
abstract member SetRectToRect : Android.Graphics.RectF * Android.Graphics.RectF * Android.Graphics.Matrix.ScaleToFit -> bool
override this.SetRectToRect : Android.Graphics.RectF * Android.Graphics.RectF * Android.Graphics.Matrix.ScaleToFit -> bool

Parameters

src
RectF

the source rectangle to map from.

dst
RectF

the destination rectangle to map to.

stf
Matrix.ScaleToFit

the ScaleToFit option

Returns

true if the matrix can be represented by the rectangle mapping.

Attributes

Remarks

Java documentation for android.graphics.Matrix.setRectToRect(android.graphics.RectF, android.graphics.RectF, android.graphics.ScaleToFit).

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