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

Performing Barrel Correction using

Jul 9, 2014 at 11:14 AM
Hi..I'm trying to use imageMagick's barrel distort correction ( through the interface in my c# code,but unable to..could anybody please help me out?
Jul 9, 2014 at 12:08 PM
Edited Jul 9, 2014 at 12:08 PM
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);