$ 0 0 I think you should take a look at the Fx method of MagickImage. You can use that to do mathematical operations on channels. You can find the documentation here: http://www.imagemagick.org/script/fx.php.