private void applyColorMatrixFilter() { ColorMatrix cmat = new ColorMatrix(); cmat.applyColorDeficiency(ColorDeficiencyType.Achromatomaly.ToString()); cmat.adjustBrightness(90f); mat.SetFloatArray(colorMatId, cmat.matrix); /* * cmat.toGreyscale(0.5f, 0.5f, 0.5f); * cmat.adjustBrightness(90f); */ }