rememberGeneratePalette
fun ImageBitmap.rememberGeneratePalette(coroutineContext: CoroutineContext = Dispatchers.Default, block: Palette.Builder.() -> Unit = {}): PaletteResult
Generates a Palette from this ImageBitmap and remembers the result.
Return
The generated Palette.
Parameters
coroutineContext
The CoroutineContext to use for the generation of the Palette.
block
A block to configure the Palette.Builder before generating the Palette.
fun rememberGeneratePalette(loader: suspend () -> ImageBitmap, coroutineContext: CoroutineContext = Dispatchers.Default, block: Palette.Builder.() -> Unit = {}): PaletteResult
Generates a Palette from this ImageBitmap and remembers the result.
Return
The generated Palette.
Parameters
loader
Loader to load the ImageBitmap from.
coroutineContext
The CoroutineContext to use for the generation of the Palette.
block
A block to configure the Palette.Builder before generating the Palette.