convert -level 25%,75% in Magick.Net
Posted: 2017-05-30T14:36:19-07:00
Hi,
I'm trying to achieve the equivalent of convert.exe input.jpg -level 25%,75% output.jpg
I'm using MagickImage ContastStretch method. Basically it's not working.
Advice gratefully received.
Martin
I'm trying to achieve the equivalent of convert.exe input.jpg -level 25%,75% output.jpg
I'm using MagickImage ContastStretch method. Basically it's not working.
Code: Select all
using (MagickImage image = new MagickImage("input.jpg"))
{
image.ContrastStretch(new Percentage(25), new Percentage(75));
// Save image
image.Write("output.jpg");
}
Advice gratefully received.
Martin