---
title: "RemoteShaderBrush"
description: "Brush that applies a shader to the drawn area."
type: "class"
lastmod: "2026-08-27"
---
## API Reference

> Source set: Android

```kotlin
public abstract class RemoteShaderBrush internal constructor() : RemoteBrush()
```

Brush that applies a shader to the drawn area.

Base class for shader-based brushes such as gradients and image textures.

## Functions

### applyTo

> Source set: Android

```kotlin
override fun RemoteStateScope.applyTo(paint: RemotePaint, size: RemoteSize)
```

### applyTo

> Source set: Android

```kotlin
public open fun RemoteStateScope.applyTo(
        paint: RemotePaint,
        size: RemoteSize,
        matrix3x3: RemoteMatrix3x3,
    )
```

Applies this [RemoteShaderBrush](/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemoteShaderBrush/api) to a `paint` with a given [size](/jetpack-compose/androidx.compose.remote/remote-creation-compose/functions/size/api) and `matrix3x3`
transformation.

#### Parameters

| | |
| --- | --- |
| paint | The paint to apply the shader to. |
| size | The size of the area being drawn. |
| matrix3x3 | The 3x3 matrix to apply to the shader. |
