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

```kotlin
public abstract class RemotePainter
```

A class that holds drawing operations for a remote component. This is analogous to the
[androidx.compose.ui.graphics.painter.Painter](/jetpack-compose/androidx.compose.ui/ui-graphics/classes/Painter) class for remote compose operations. Subclasses of
[RemotePainter](/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemotePainter) are responsible for implementing the [onDraw](#ondraw) method, which defines the drawing
operations.

## Functions

<h2 id="ondraw">onDraw</h2>

```kotlin
public abstract fun RemoteDrawScope.onDraw()
```

Defines the drawing operations within [RemoteDrawScope](/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemoteDrawScope).

<hr class="docs-overload-divider">

<h2 id="draw-blendmode-alpha">draw</h2>

```kotlin
public fun RemoteDrawScope.draw(
        blendMode: BlendMode? = null,
        alpha: RemoteFloat = DefaultAlpha.rf,
    )
```

The main entry point for drawing. This method is called by the remote compose framework to
draw the painter.