<h2 id="bitmap-bitmap-tilemodex-tilemodey-contentscale">bitmap</h2>

<div class='sourceset sourceset-android'>Android</div>

```kotlin
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](/jetpack-compose/androidx.compose.remote/remote-creation-compose/functions/bitmap).

#### Parameters

| | |
| --- | --- |
| bitmap | The [RemoteBitmap](/jetpack-compose/androidx.compose.remote/remote-creation-compose/classes/RemoteBitmap) to use |
| tileModeX | The `ComposeTileMode` to use for the bitmap in the x-axis. Defaults to [ComposeTileMode.Clamp](/jetpack-compose/androidx.compose.remote/remote-creation-compose/functions/clamp) to repeat the edge pixels |
| tileModeY | The `ComposeTileMode` to use for the bitmap in the y-axis. Defaults to [ComposeTileMode.Clamp](/jetpack-compose/androidx.compose.remote/remote-creation-compose/functions/clamp) to repeat the edge pixels |
| contentScale | The [ContentScale](/jetpack-compose/androidx.compose.ui/ui/interfaces/ContentScale) to use when scaling the bitmap. |