-image-any.md 1.6 KB

//tvlib/org.mjdev.tvlib.ui.components.image/ImageAny

ImageAny

[androidJvm]

@Composable

fun ImageAny(modifier: Modifier = Modifier, src: Any? = null, contentDescription: String? = null, alignment: Alignment = Alignment.Center, contentScale: ContentScale = ContentScale.Fit, alpha: Float = DefaultAlpha, tint: Color? = null, colorFilter: ColorFilter? = tint?.let { ColorFilter.tint(it) }, placeholder: @Composable() -> Unit = {

    Image(
        painterResource(R.drawable.broken_image),
        contentDescription,
        modifier,
        alignment,
        contentScale,
        alpha,
        colorFilter
    )
})