Image

@Composable
fun Image(bitmap: ImageBitmap, modifier: Modifier = Modifier, contentDescription: String? = null)

Shows bitmap, scaled to fit the incoming constraints while keeping its aspect ratio, and at most as large as its pixels on the terminal when its cell size is known.

Terminals which support the Kitty graphics protocol with Unicode placeholders, the inline images of iTerm2, or Sixel show the image itself. Others show it with half block characters, two pixels per cell, in the colors of the image.

Parameters

contentDescription

What the image shows, for debug output.