Google 致力于为黑人社区推动种族平等。查看具体举措

androidx.palette.graphics

Interfaces

Filter

A Filter provides a mechanism for exercising fine-grained control over which colors are valid within a resulting Palette.

PaletteAsyncListener

Listener to be used with generateAsync(Bitmap, PaletteAsyncListener) or generateAsync(Bitmap, int, PaletteAsyncListener)

Classes

Palette

A helper class to extract prominent colors from an image.

Target

A class which allows custom selection of colors in a Palette's generation.

Extension functions summary

For Palette
operator Palette.Swatch?
Palette.get(target: Target)

Returns the selected swatch for the given target from the palette, or null if one could not be found.

Extension functions

get

inline operator fun Palette.get(target: Target): Palette.Swatch?

Returns the selected swatch for the given target from the palette, or null if one could not be found.