Replace color #643
Unanswered
jueqing1015
asked this question in
Help
Replies: 2 comments 6 replies
-
Your command would translate to this: using (var image = new MagickImage(" 2.jpg:")) // 2.jpg
{
image.Alpha(AlphaOption.Set); // -alpha set
image.ColorFuzz = new Percentage(10); // -fuzz 10%
image.Opaque(
target: MagickColors.White, // -opaque "rgb(255,255,255)"
fill: MagickColors.Black); // -fill "rgb(0,0,0)"
image.Write("new.png"); // new.png
} Not sure why you need the |
Beta Was this translation helpful? Give feedback.
6 replies
-
In command line mode, you can do that with -distort SRT
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Example: I need to replace all the red in a picture, including some similar ones, with white
The original ImageMagick has a similar operation, but in the MAGICK.NET Not found in
convert 2.jpg -alpha set -channel RGBA -fuzz 10% -fill "rgb(0,0,0)" -opaque "rgb(255,255,255)" new.png
Is it possible to integrate this function?
Beta Was this translation helpful? Give feedback.
All reactions