withOtherCanvas

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

Temporarily swaps the Canvas and yields DrawContext as the block’s receiver.