Function

bitmap

Creates a texture brush with a specified bitmap.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

bitmap

Android
public fun RemoteBrush.Companion.bitmap(
    bitmap: RemoteBitmap,
    tileModeX: ComposeTileMode = ComposeTileMode.Clamp,
    tileModeY: ComposeTileMode = ComposeTileMode.Clamp,
    contentScale: ContentScale = ContentScale.None,
): RemoteBitmapBrush

Creates a texture brush with a specified bitmap.

Parameters

bitmap The RemoteBitmap 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.