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. |
|
fun Canvas.withSave(block: Canvas.() -> Unit): Unit
Wrap the specified block in calls to Canvas.save and Canvas.restoreToCount. |
|
fun Canvas.withScale(x: Float = 1.0f, y: Float = 1.0f, pivotX: Float = 0.0f, pivotY: Float = 0.0f, block: Canvas.() -> Unit): Unit
Wrap the specified block in calls to Canvas.save/Canvas.scale and Canvas.restoreToCount. |
|
fun Canvas.withSkew(x: Float = 0.0f, y: Float = 0.0f, block: Canvas.() -> Unit): Unit
Wrap the specified block in calls to Canvas.save/Canvas.skew and Canvas.restoreToCount. |
|
fun Canvas.withTranslation(x: Float = 0.0f, y: Float = 0.0f, block: Canvas.() -> Unit): Unit
Wrap the specified block in calls to Canvas.save/Canvas.translate and Canvas.restoreToCount. |