Source set: Android
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
override fun RemoteStateScope.applyTo(paint: RemotePaint, size: RemoteSize)
applyTo
Source set: Android
public open fun RemoteStateScope.applyTo(
paint: RemotePaint,
size: RemoteSize,
matrix3x3: RemoteMatrix3x3,
)
Applies this RemoteShaderBrush to a paint with a given size 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. |