core-ktx / androidx.graphics / android.graphics.Canvas / withRotation

withRotation

inline fun Canvas.withRotation(degrees: Float = 0.0f, pivotX: Float = 0.0f, pivotY: Float = 0.0f, block: Canvas.() -> Unit): Unit

Wrap the specified block in calls to Canvas.save/Canvas.rotate and Canvas.restoreToCount.