AiutaImage

fun AiutaImage(image: AiutaDrawableResource, contentDescription: String?, modifier: Modifier = Modifier, alignment: Alignment = Alignment.Center, contentScale: ContentScale = ContentScale.Fit, alpha: Float = DefaultAlpha, colorFilter: ColorFilter? = null)

Displays an image from a drawable resource.

Parameters

image

The drawable resource to be displayed

contentDescription

The content description for accessibility

modifier

The modifier to be applied to the image

alignment

The alignment of the image within its bounds

contentScale

The scale type of the image

alpha

The alpha value for the image

colorFilter

Optional color filter to be applied to the image


fun AiutaImage(imageUrl: String?, contentDescription: String?, shapeDp: Dp, modifier: Modifier = Modifier, imageBuilder: ImageRequest.Builder = ImageRequest.Builder(LocalPlatformContext.current), alignment: Alignment = Alignment.Center, contentScale: ContentScale = ContentScale.Fit, alpha: Float = DefaultAlpha, colorFilter: ColorFilter? = null)

Displays an image from a URL with rounded corners.

Parameters

imageUrl

The URL of the image to be displayed

contentDescription

The content description for accessibility

shapeDp

The corner radius for the rounded corners

modifier

The modifier to be applied to the image

imageBuilder

The builder for configuring the image request

alignment

The alignment of the image within its bounds

contentScale

The scale type of the image

alpha

The alpha value for the image

colorFilter

Optional color filter to be applied to the image


fun AiutaImage(imageUrl: String?, contentDescription: String?, shape: CornerBasedShape, modifier: Modifier = Modifier, imageBuilder: ImageRequest.Builder = ImageRequest.Builder(LocalPlatformContext.current), alignment: Alignment = Alignment.Center, contentScale: ContentScale = ContentScale.Fit, alpha: Float = DefaultAlpha, colorFilter: ColorFilter? = null)

Displays an image from a URL with a custom shape.

Parameters

imageUrl

The URL of the image to be displayed

contentDescription

The content description for accessibility

shape

The shape to be applied to the image

modifier

The modifier to be applied to the image

imageBuilder

The builder for configuring the image request

alignment

The alignment of the image within its bounds

contentScale

The scale type of the image

alpha

The alpha value for the image

colorFilter

Optional color filter to be applied to the image