image
Source set: JvmAndAndroid
public fun RemoteBrush.Companion.image(
image: RemoteImageBitmap,
tileModeX: RemoteTileMode = RemoteTileMode.Clamp,
tileModeY: RemoteTileMode = RemoteTileMode.Clamp,
contentScale: RemoteContentScale = RemoteContentScale.None,
): RemoteShaderBrush
Creates a texture brush with a specified image.
Parameters
| image | RemoteImageBitmap to use as a texture |
| tileModeX | RemoteTileMode to use for the bitmap along the x-axis, defaulting to RemoteTileMode.Clamp |
| tileModeY | RemoteTileMode to use for the bitmap along the y-axis, defaulting to RemoteTileMode.Clamp |
| contentScale | RemoteContentScale to use when scaling the bitmap, defaulting to RemoteContentScale.None |
Return
a RemoteShaderBrush that draws image as a texture