ColorFilter filter = new PorterDuffColorFilter(Color.BLUE, PorterDuff.Mode.SRC_IN);
The above filter will tint the non-transparent pixels to blue color.
The color filter can be applied to a
It can be applied to an
Also, it can be applied to a
Paint, so that the color that is drawn using that paint, is modified by the filter: