rotate

open fun rotate(src: Bitmap, degrees: Int, px: Float, py: Float): Bitmap

Return the rotated bitmap.

Return

the rotated bitmap

Parameters

src

The source of bitmap.

degrees

The number of degrees.

px

The x coordinate of the pivot point.

py

The y coordinate of the pivot point.

open fun rotate(src: Bitmap, degrees: Int, px: Float, py: Float, recycle: Boolean): Bitmap

Return the rotated bitmap.

Return

the rotated bitmap

Parameters

src

The source of bitmap.

degrees

The number of degrees.

px

The x coordinate of the pivot point.

py

The y coordinate of the pivot point.

recycle

True to recycle the source of bitmap, false otherwise.