What is the equivalent methods to do this in Magick.net? #1986
Unanswered
DominusFlevit
asked this question in
Help
Replies: 2 comments
-
|
image.Opaque() ... |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I cannot test your command because I don't have your input image but it should translate to this: using var image = new MagickImage("input.jpg");
image.Opaque(MagickColors.White, MagickColors.Black); // -fill black -opaque "white"
image.Opaque(MagickColors.Blue, MagickColors.Black); // -fill black -opaque "blue"
image.Opaque(MagickColors.Red, MagickColors.Black); // -fill black -opaque "red"
image.FloodFill(MagickColors.White, 0, 0, MagickColors.Yellow); // -fill white -floodfill +0+0 yellow
image.Trim(); // -trim
image.ResetPage(); // +repage
image.Write("output.jpg"); |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I know the calls for fill become floodfill like this:
image.FloodFill(MagickColors.Black, 0, 0, MagickColors.White);
image.FloodFill(MagickColors.Black, 0, 0, MagickColors.Blue);
image.FloodFill(MagickColors.Black, 0, 0, MagickColors.Red);
Where I get lost is floodfill and trim +repage
Beta Was this translation helpful? Give feedback.
All reactions