-
-
Save skydoves/3d8750a170801f5930fd85bd553cc3ff to your computer and use it in GitHub Desktop.
PaletteWithOptions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var palette by remember { mutableStateOf<Palette?>(null) } | |
GlideImage( | |
imageModel = poster?.poster!!, | |
modifier = Modifier | |
.aspectRatio(0.8f), | |
bitmapPalette = BitmapPalette( | |
imageModel = poster.poster, | |
useCache = true, | |
interceptor = { | |
it.addFilter { rgb, hsl -> | |
// here edit to add the filter colors. | |
false | |
} | |
}, | |
paletteLoadedListener = { | |
palette = it | |
} | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment