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.

Constructors

Link copied to clipboard
constructor(density: Density, layoutDirection: LayoutDirection)

Functions

Link copied to clipboard
open suspend override fun load(input: Painter): ImageBitmap