# ShaderKt

Added in 1.1.0

*** ** * ** ***


```
public final class ShaderKt
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final void` | `https://developer.android.com/reference/androidx/core/graphics/ShaderKt#(android.graphics.Shader).transform(kotlin.Function1)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Shader.html receiver, @https://developer.android.com/reference/androidx/annotation/NonNull Function1<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/android/graphics/Matrix.html, https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html> block )` Wrap the specified `https://developer.android.com/reference/androidx/core/graphics/package-summary#(android.graphics.Shader).transform(kotlin.Function1)` in calls to `https://developer.android.com/reference/android/graphics/Shader.html#getLocalMatrix(android.graphics.Matrix)` and `https://developer.android.com/reference/android/graphics/Shader.html#setLocalMatrix(android.graphics.Matrix)`. |

## Public methods

### transform

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Shader.kt+function:transform) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
public static final void transform(
    @NonNull Shader receiver,
    @NonNull Function1<@NonNull Matrix, Unit> block
)
```

Wrap the specified `https://developer.android.com/reference/androidx/core/graphics/package-summary#(android.graphics.Shader).transform(kotlin.Function1)` in calls to `https://developer.android.com/reference/android/graphics/Shader.html#getLocalMatrix(android.graphics.Matrix)` and `https://developer.android.com/reference/android/graphics/Shader.html#setLocalMatrix(android.graphics.Matrix)`.