withOtherCanvas

abstract fun withOtherCanvas(canvas: Canvas, block: () -> Unit)

Updates the value of DrawingContext.canvas to canvas, runs block, and restores the previous DrawingContext.canvas value.