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

New Post: Remove Background

$
0
0
Your commands translates to the example below. But it does not work correctly due to a bug in ImageMagick. This will be fixed the next release of Magick.NET.
using (MagickImage image = new MagickImage("cyclops.png"))
{
  image.Alpha(AlphaOption.Set); // -alpha set
  image.ColorFuzz = 20; // -fuzz 20%// You don't need to specify -channel RGBA 
  image.FloodFill(MagickColor.Transparent, 0, 0, new MagickColor("#FFF")); // -fill none -floodfill +0+0 white
  image.Write("cyclops_flood_1.png");
}

Viewing all articles
Browse latest Browse all 3693

Trending Articles



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