Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: Performing Barrel Correction using magick.net

$
0
0
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.jpgusing (MagickImage image = new MagickImage("input.jpg"))
{
  double[] arguments = newdouble[] { 0.06335, -0.18432, -0.13008 };
  image.Distort(DistortMethod.Barrel, arguments);
  image.Write("output.jpg");
}

Viewing all articles
Browse latest Browse all 3693

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>