共用方式為


Matrix.SetScale Method

Definition

Overloads

SetScale(Single, Single)

Set the matrix to scale by sx and sy.

SetScale(Single, Single, Single, Single)

Set the matrix to scale by sx and sy, with a pivot point at (px, py).

SetScale(Single, Single)

Set the matrix to scale by sx and sy.

[Android.Runtime.Register("setScale", "(FF)V", "GetSetScale_FFHandler")]
public virtual void SetScale (float sx, float sy);
[<Android.Runtime.Register("setScale", "(FF)V", "GetSetScale_FFHandler")>]
abstract member SetScale : single * single -> unit
override this.SetScale : single * single -> unit

Parameters

sx
Single
sy
Single
Attributes

Remarks

Set the matrix to scale by sx and sy.

Java documentation for android.graphics.Matrix.setScale(float, float).

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

SetScale(Single, Single, Single, Single)

Set the matrix to scale by sx and sy, with a pivot point at (px, py).

[Android.Runtime.Register("setScale", "(FFFF)V", "GetSetScale_FFFFHandler")]
public virtual void SetScale (float sx, float sy, float px, float py);
[<Android.Runtime.Register("setScale", "(FFFF)V", "GetSetScale_FFFFHandler")>]
abstract member SetScale : single * single * single * single -> unit
override this.SetScale : single * single * single * single -> unit

Parameters

sx
Single
sy
Single
px
Single
py
Single
Attributes

Remarks

Set the matrix to scale by sx and sy, with a pivot point at (px, py). The pivot point is the coordinate that should remain unchanged by the specified transformation.

Java documentation for android.graphics.Matrix.setScale(float, float, float, float).

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