Bitmap

data class Bitmap(val imageBitmap: ImageBitmap, val tintable: Boolean = false) : ToolkitIcon(source)

Icon backed by a runtime Compose ImageBitmap. Nothing about it animates.

This source is intended for artwork that is not known as a compile-time drawable resource, such as an application icon resolved at runtime. Artwork keeps its original colors by default. Set tintable only for monochrome imagery that should follow the host component's content color.

Callers own creation and lifetime of the bitmap. Convert mutable Android objects such as a Drawable at the application boundary instead of storing them in this immutable icon model.

Constructors

Link copied to clipboard
constructor(imageBitmap: ImageBitmap, tintable: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard