PainterLoader
class PainterLoader(density: Density, layoutDirection: LayoutDirection) : ImageBitmapLoader<Painter>
A default loader that converts a Painter to an ImageBitmap for palette generation.
This loader draws the painter onto a bitmap using the provided density and layout direction.
Parameters
density
The Density used for drawing the painter.
layoutDirection
The LayoutDirection used for drawing the painter.