Share via


Matrix.SetRotate Method

Definition

Overloads

SetRotate(Single)

Set the matrix to rotate about (0,0) by the specified number of degrees.

SetRotate(Single, Single, Single)

Set the matrix to rotate by the specified number of degrees, with a pivot point at (px, py).

SetRotate(Single)

Set the matrix to rotate about (0,0) by the specified number of degrees.

[Android.Runtime.Register("setRotate", "(F)V", "GetSetRotate_FHandler")]
public virtual void SetRotate (float degrees);
[<Android.Runtime.Register("setRotate", "(F)V", "GetSetRotate_FHandler")>]
abstract member SetRotate : single -> unit
override this.SetRotate : single -> unit

Parameters

degrees
Single
Attributes

Remarks

Set the matrix to rotate about (0,0) by the specified number of degrees.

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

SetRotate(Single, Single, Single)

Set the matrix to rotate by the specified number of degrees, with a pivot point at (px, py).

[Android.Runtime.Register("setRotate", "(FFF)V", "GetSetRotate_FFFHandler")]
public virtual void SetRotate (float degrees, float px, float py);
[<Android.Runtime.Register("setRotate", "(FFF)V", "GetSetRotate_FFFHandler")>]
abstract member SetRotate : single * single * single -> unit
override this.SetRotate : single * single * single -> unit

Parameters

degrees
Single
px
Single
py
Single
Attributes

Remarks

Set the matrix to rotate by the specified number of degrees, 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.setRotate(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