Source set: JvmAndAndroid
public abstract class RemoteBrush internal constructor()
A remote representation of a androidx.compose.ui.graphics.Brush that can be serialized and reconstructed on a remote surface.
This class provides a mechanism to intercept standard Compose androidx.compose.ui.graphics.Brush instances, such as linear gradients or solid colors, and convert them into a format suitable for remote rendering.
Functions
applyTo
Source set: JvmAndAndroid
public abstract fun RemoteStateScope.applyTo(paint: RemotePaint, size: RemoteSize)
Applies this RemoteBrush to a paint.
Parameters
| paint | The paint to apply to. |
| size | The size of the area being drawn, used for shader calculation. |
Members
Companion
Source set: JvmAndAndroid
public companion object