This project has moved. For the latest updates, please go here.

How to use MagickImage.ColorMatrix() method?

Sep 27, 2013 at 10:11 AM

I can't figure out how to use ColorMatrix() method. The argument it expects is MatrixColor, which I can create with a certain order. But how to set the actual matrix values in it? What am I missing?!

Appreciating any help.
Sep 27, 2013 at 12:16 PM
You can change the values like this:
MatrixColor matrix = new MatrixColor(4);
matrix[0,0] = yourValue;
I should probably also create GetValue/SetValue methods.
Sep 27, 2013 at 12:17 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Sep 28, 2013 at 11:32 AM
Aaah! Why didn't I think of that?! Thank you very much.