java.lang.Object | |
↳ | android.support.v7.graphics.Palette.Generator |
Extension point for Palette
which allows custom processing of the list of
Palette.Swatch
instances which represent an image.
You should do as much processing as possible during the
generate(java.util.List)
method call. The other methods in this class
may be called multiple times to retrieve an appropriate Palette.Swatch
.
Usage of a custom Palette.Generator
is done with generator(Generator)
as so:
Generator customGenerator = ...; Palette.from(bitmap).generator(customGenerator).generate();
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method will be called with the
Palette.Swatch that represent an image.
| |||||||||||
Return a muted and dark
Palette.Swatch
| |||||||||||
Return a dark and vibrant
Palette.Swatch
| |||||||||||
Return a muted and light
Palette.Swatch
| |||||||||||
Return a light and vibrant
Palette.Swatch
| |||||||||||
Return a muted
Palette.Swatch
| |||||||||||
Return the most vibrant
Palette.Swatch
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
This method will be called with the Palette.Swatch
that represent an image.
You should process this list so that you have appropriate values when the other methods in
class are called.
This method will probably be called on a background thread.