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

New Post: Removing white from image with white background where gradients are present

$
0
0
That command would translate to this:
using (MagickImage image = new MagickImage("{input file path}"))
{
  image.AddProfile(ColorProfile.SRGB);
  image.Strip();
  image.Negate();
  image.Alpha(AlphaOption.Copy);
  image.Colorize(MagickColors.Black, new Percentage(100));
  image.Write("{Output file path}");
}
I am getting a slightly different result than your desired result though.

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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