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

withSave

inline fun Canvas.withSave(block: Canvas.() -> Unit): Unit

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