//tvlib/org.mjdev.tvlib.ui.components.image
| Name | Summary |
|---|---|
| CircleImage | [androidJvm] @Composable fun CircleImage(modifier: Modifier = Modifier, backGroundColor: Color = Color.White, borderColor: Color = Color.White, borderSize: Dp = 3.dp, contentDescription: String = "", contentPadding: Dp = 2.dp, src: Any? = R.drawable.person) |
| FadingPhotoImage | [androidJvm] @Composable fun FadingPhotoImage(modifier: Modifier = Modifier, initialImage: Any? = null, animationDuration: Int = 1800, delay: Long = 600, alpha: Float = 0.6f, blurRadius: Dp = 24.dp, @FloatRange(from = 0.0, to = 10.0)contrast: Float = 4.0f, @FloatRange(from = -255.0, to = 255.0)brightness: Float = -255f, contentScale: ContentScale = ContentScale.Crop, placeholder: @Composable() -> Unit = {}, borderSize: Dp = 0.dp, borderColor: Color = Color.Transparent, roundCornerSize: Dp = 0.dp, shape: Shape = RoundedCornerShape(roundCornerSize), colorFilter: ColorFilter? = null, contentDescription: String? = null, alignment: Alignment = Alignment.Center, fadingImageState: MutableState<Any?> = remember { mutableStateOf(initialImage) }) |
| 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 ) }) |
| ImageColoredBackground | [androidJvm] @Composable fun ImageColoredBackground(modifier: Modifier = Modifier, image: Any? = null, shape: Shape = RectangleShape, transform: (color: Color) -> Brush? = null, contentAlignment: Alignment = Alignment.TopStart, content: @Composable(bckColor: Color) -> Unit = {}) |
| 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) |