Image

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

Image content for the media container.

Constructors

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

Properties

Link copied to clipboard

The aspect ration of the image.

Link copied to clipboard
Link copied to clipboard

The content scaling to be applied to the image.

Link copied to clipboard

The painter that will be used to draw the image.