<div class='sourceset sourceset-android'>Android</div>

```kotlin
class CanvasHolder
```

Holder class that is used to issue scoped calls to a [Canvas](/jetpack-compose/androidx.compose.ui/ui-graphics/interfaces/Canvas) from the framework equivalent
canvas without having to allocate an object on each draw call

## Functions

<h2 id="drawinto-targetcanvas-block">drawInto</h2>

```kotlin
inline fun drawInto(targetCanvas: android.graphics.Canvas, block: Canvas.() -> Unit)
```