Function

image

Creates a texture brush with a specified image.

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

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: