Lines Matching refs:cm
46 private static void setTranslate(ColorMatrix cm, float dr, float dg,
48 cm.set(new float[] {
55 private static void setContrast(ColorMatrix cm, float contrast) {
58 cm.set(new float[] {
65 private static void setContrastTranslateOnly(ColorMatrix cm, float contrast) {
68 cm.set(new float[] {
75 private static void setContrastScaleOnly(ColorMatrix cm, float contrast) {
78 cm.set(new float[] {
95 ColorMatrix cm = new ColorMatrix();
105 setContrast(cm, contrast);
106 paint.setColorFilter(new ColorMatrixColorFilter(cm));
109 setContrastScaleOnly(cm, contrast);
110 paint.setColorFilter(new ColorMatrixColorFilter(cm));
113 setContrastTranslateOnly(cm, contrast);
114 paint.setColorFilter(new ColorMatrixColorFilter(cm));