Matrix.SetRectToRect(RectF, RectF, Matrix+ScaleToFit) 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.
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.
the ScaleToFit option
Returns
true if the matrix can be represented by the rectangle mapping.
- Attributes
Remarks
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.