// # Transformation Contract @Override public final Bitmap transform(Bitmap source) { final Palette palette = Palette.generate(source); CACHE.put(source, palette); return source; }
public static Palette getPalette(Bitmap bitmap) { return CACHE.get(bitmap); }