Performing Barrel Correction using magick.net

Jul 9, 2014 at 10:14 AM
Hi..I'm trying to use imageMagick's barrel distort correction (http://imagemagick.org/Usage/lens/) through the magick.net interface in my c# code,but unable to..could anybody please help me out?
Coordinator
Jul 9, 2014 at 11:08 AM
Edited Jul 9, 2014 at 11:08 AM
Thank you for posting your message here. An issue should only be created when there is a bug or something new should be added.

Doing a barrel distort is already possible in Magick.NET. Below is the C# code from one of the examples on the page in your link:
// convert input.jpg -distort barrel '0.06335 -0.18432 -0.13008' output.jpg
using (MagickImage image = new MagickImage("input.jpg"))
{
  double[] arguments = new double[] { 0.06335, -0.18432, -0.13008 };
  image.Distort(DistortMethod.Barrel, arguments);
  image.Write("output.jpg");
}