ImageModel

constructor(model: Any?, placeholder: Painter? = null, error: Painter? = null, fallback: Painter? = error, contentScale: ContentScale = ContentScale.Crop, alpha: Float = DefaultAlpha, colorFilter: ColorFilter? = null, filterQuality: FilterQuality = DrawScope.DefaultFilterQuality)

Parameters

model

The model to load the image from.

placeholder

The placeholder to show while loading the image.

error

The painter to show when the image loading fails.

fallback

The painter to show when the image loading fails. Defaults to error.

contentScale

The scale of the content. Defaults to ContentScale.Crop.

alpha

The alpha value to apply to the image. Defaults to DefaultAlpha.

colorFilter

The color filter to apply to the image. Defaults to null.

filterQuality

The quality of the filter. Defaults to DrawScope.DefaultFilterQuality.