Package-level declarations
Types
Link copied to clipboard
A default loader that converts a ByteArray to an ImageBitmap for palette generation.
Link copied to clipboard
A loader for Android drawable resources that converts them to ImageBitmap for palette generation.
Link copied to clipboard
class PainterLoader(density: Density, layoutDirection: LayoutDirection) : ImageBitmapLoader<Painter>
A default loader that converts a Painter to an ImageBitmap for palette generation.
Link copied to clipboard
A ImageBitmapLoader that loads ImageBitmaps from a DrawableResource, by reading the bytes from the resource.
Functions
Link copied to clipboard
Create and remember a DrawableLoader that uses the LocalContext to load drawables.
Link copied to clipboard
fun rememberPainterLoader(density: Density = LocalDensity.current, layoutDirection: LayoutDirection = LocalLayoutDirection.current): PainterLoader
Create and remember a PainterLoader that uses the LocalDensity and LocalLayoutDirection to generate a Palette from a Painter.
Link copied to clipboard
Create and remember a ResourceLoader for the current ResourceEnvironment.