public Image ProcessImage(ImageFactory factory) { var colorMatrix = new ColorMatrix(new float[][] { new float[] { .393f, .349f, .272f, 0, 0 }, new float[] { .769f, .686f, .534f, 0, 0 }, new float[] { .189f, .168f, .131f, 0, 0 }, new float[] { 0, 0, 0, 1, 0 }, new float[] { 0, 0, 0, 0, 1 } }); return(CMatrix.Apply(factory, colorMatrix)); }
public Image ProcessImage(ImageFactory factory) { var colorMatrix = new ColorMatrix(new float[][] { new float[] { 1, 0, 0, 0, 0 }, new float[] { 0, 1, 0, 0, 0 }, new float[] { 0, 0, 1, 0, 0 }, new float[] { 0, 0, 0, 0.3f, 0 }, new float[] { 0, 0, 0, 0, 1 } }); return(CMatrix.Apply(factory, colorMatrix)); }