Function

image

Creates a texture brush with a specified image.

image

Source set: Android
public fun RemoteBrush.Companion.image(
    image: RemoteImageBitmap,
    tileModeX: ComposeTileMode = ComposeTileMode.Clamp,
    tileModeY: ComposeTileMode = ComposeTileMode.Clamp,
    contentScale: ContentScale = ContentScale.None,
): RemoteShaderBrush

Creates a texture brush with a specified image.

Parameters

image The RemoteImageBitmap to use
tileModeX The ComposeTileMode to use for the bitmap in the x-axis. Defaults to ComposeTileMode.Clamp to repeat the edge pixels
tileModeY The ComposeTileMode to use for the bitmap in the y-axis. Defaults to ComposeTileMode.Clamp to repeat the edge pixels
contentScale The ContentScale to use when scaling the bitmap.
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: