Black foreground, white background #1630
Answered
by
dlemstra
onurdumangoz
asked this question in
Help
-
Beta Was this translation helpful? Give feedback.
Answered by
dlemstra
May 18, 2024
Replies: 1 comment 3 replies
-
It looks like you found a bug in the code. While writing an answer I figured out there was a bug in the code of the using var image = new MagickImage("im-logo-1.png");
using var clutImage = new MagickImage("xc:black", 1, 1);
image.Clut(clutImage, Channels.RGB); // This overload will also be added and in the current release the channels are used incorrectly.
image.Alpha(AlphaOption.Remove);
image.Write("im-logo-2.png"); |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
onurdumangoz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It looks like you found a bug in the code. While writing an answer I figured out there was a bug in the code of the
.Clut
method. This has been fixed an will become available in the next release. After that release you can do this: