Just played around with ColorMatrixColorFilter again; it's super powerful!

This sample gist creates a 'ghost' bitmap version of a given source bitmap. In the ghost bitmap, the RGB values take on the values of a single pre-defined color (in the photo below, black or white), while the alpha values are derived from the source's grayscaled RGB values. The effect is that you can see through darker parts of the source bitmap, while lighter parts show up as the given color. Kind of like the multiply or screen blending mode in Photoshop.


Might be useful to use this with the new iconUri() method in DashClock's upcoming API v2 :-)

Shared publiclyView activity