I try to convert this console command:
Code: Select all
convert EWwSX.jpg -fuzz 40% -fill white +opaque black result.png
Code: Select all
image.ColorFuzz = (Percentage)40;
image.Settings.FillColor = MagickColors.White;
image.Opaque(MagickColors.Black, MagickColors.Black);
image.Write(@"C:\x.jpg");
Code: Select all
image.Opaque(MagickColors.Black, MagickColors.Black);