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

Equivalent for -clip and -clip-path

May 16, 2013 at 7:06 PM
Does Magick.NET expose an equivalent to the command-line tool's -clip and -clip-path options? I'm looking to programmatically do something like

convert source.tif -clip -negate result.tif
May 16, 2013 at 8:29 PM
Most methods have the same name as the command line equivalent. You can negate an image using the code from the following example:
using (MagickImage image = new MagickImage("source.tiff"))
There is no clip method for Magick.NET. If you want to apply a clip mask you should use the ClipMask property of MagickImage.