This project has moved and is read-only. For the latest updates, please go here.

How to use MagickImage.ColorMatrix() method?

Sep 27, 2013 at 11: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 1: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 1: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 12:32 PM
Aaah! Why didn't I think of that?! Thank you very much.