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
Coordinator
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"))
{
  image.Negate();
  image.Write("result.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.