public static interface Palette.Filter
| android.support.v7.graphics.Palette.Filter |
过滤器提供了一种机制,用于对生成的 Palette内的哪些颜色有效进行细粒度控制。
公共方法(Public methods) |
|
|---|---|
abstract boolean |
isAllowed(int rgb, float[] hsl) 挂钩让客户能够从结果调色板中过滤颜色。 |
boolean isAllowed (int rgb,
float[] hsl)
挂钩让客户能够从结果调色板中过滤颜色。
| 参数(Parameters) | |
|---|---|
rgb |
int: the color in RGB888. |
hsl |
float: HSL representation of the color. |
| 返回(Returns) | |
|---|---|
boolean |
true if the color is allowed, false if not. |
也可以看看: