List of utility methods to do Paint Color Set
void | invertCanvasColors(Paint paint) invert Canvas Colors float mx[] = { -1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, -1.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, -1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 1.0f, 1.0f, 0.0f }; ColorMatrix cm = new ColorMatrix(mx); paint.setColorFilter(new ColorMatrixColorFilter(cm)); |
void | restoreCanvasColors(Paint paint) restore Canvas Colors paint.setColorFilter(null); |