Image

data class Image(val painter: Painter, val contentDescription: String?, val contentScale: ContentScale = ContentScale.Crop, val aspectRatio: SkapaAspectRatio? = SkapaAspectRatio.Ratio1by1, val modifier: Modifier = Modifier) : CompactMediaContainer(source)

Image content for the media container.

Constructors

Link copied to clipboard
constructor(painter: Painter, contentDescription: String?, contentScale: ContentScale = ContentScale.Crop, aspectRatio: SkapaAspectRatio? = SkapaAspectRatio.Ratio1by1, modifier: Modifier = Modifier)

Properties

Link copied to clipboard

Optional aspect ratio of the image. Of type SkapaAspectRatio.

Link copied to clipboard

The contentDescription for the image. Of type String.

Link copied to clipboard

The content scaling to be applied to the image. Of type ContentScale. Default is ContentScale.Crop.

Link copied to clipboard

The modifier to be applied to the image. Of type Modifier.

Link copied to clipboard

The painter that will be used to draw the image. Of type Painter.