Android Utililty Methods Paint Color Set

List of utility methods to do Paint Color Set

Description

The list of methods to do Paint Color Set are organized into topic(s).

Method

voidinvertCanvasColors(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));
voidrestoreCanvasColors(Paint paint)
restore Canvas Colors
paint.setColorFilter(null);