BasicImage

fun BasicImage(path: BasicPath, contentDescription: String? = null, modifier: Modifier = Modifier, alignment: Alignment = Alignment.Center, contentScale: ContentScale = ContentScale.Fit, alpha: Float = DefaultAlpha, colorFilter: ColorFilter? = null, filterQuality: FilterQuality = DefaultFilterQuality, placeholderEnabled: Boolean = true)

A composable that asynchronously loads and displays an image from a local BasicPath.

While the image is loading, a circular progress indicator can be displayed. The state of the image loading is tracked by ImageState.

Parameters

path

The BasicPath of the image to be loaded.

contentDescription

A description of the image for accessibility services.

modifier

Modifier for this composable.

alignment

The alignment of the image within its bounds.

contentScale

The scaling of the image within its bounds.

alpha

The opacity of the image.

colorFilter

A ColorFilter to apply to the image.

filterQuality

The FilterQuality to apply when scaling the image.

placeholderEnabled

Whether to show a CircularProgressIndicator while loading.


fun BasicImage(url: BasicUrl, contentDescription: String? = null, modifier: Modifier = Modifier, alignment: Alignment = Alignment.Center, contentScale: ContentScale = ContentScale.Fit, alpha: Float = DefaultAlpha, colorFilter: ColorFilter? = null, filterQuality: FilterQuality = DefaultFilterQuality, placeholderEnabled: Boolean = true)

A composable that asynchronously loads and displays an image from a BasicUrl.

While the image is loading, a circular progress indicator can be displayed. The state of the image loading is tracked by ImageState.

Parameters

url

The BasicUrl of the image to be loaded.

contentDescription

A description of the image for accessibility services.

modifier

Modifier for this composable.

alignment

The alignment of the image within its bounds.

contentScale

The scaling of the image within its bounds.

alpha

The opacity of the image.

colorFilter

A ColorFilter to apply to the image.

filterQuality

The FilterQuality to apply when scaling the image.

placeholderEnabled

Whether to show a CircularProgressIndicator while loading.