Skip to content

photo image

milan jurkulák edited this page May 2, 2024 · 1 revision

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

PhotoImage

[androidJvm]\

@Composable

fun PhotoImage(src: Any? = null, modifier: Modifier = Modifier, alignment: Alignment = Alignment.Center, contentScale: ContentScale = ContentScale.Crop, placeholder: @Composable() -> Unit = { ImageAny( modifier = modifier, src = R.drawable.broken_image, contentScale = contentScale ) }, alpha: Float = DefaultAlpha, @FloatRange(from = 0.0, to = 10.0)contrast: Float = 5.0f, @FloatRange(from = -255.0, to = 255.0)brightness: Float = -255f, borderSize: Dp = 2.dp, borderColor: Color = Color.Black, backgroundColor: Color = Color.Black, roundCornerSize: Dp = 8.dp, shape: Shape = RoundedCornerShape(roundCornerSize), colorFilter: ColorFilter? = null, contentDescription: String? = null, onImageStateChanged: (state: GlideImageState) -> Unit? = null)

Clone this wiki locally