Transparent BackgroundColor turns black #2399
-
Hello :) I am trying to save an image with a white transparent background. This is what I tried: using var test = Image.Load<Rgba32>("in.png");
test.Mutate(x => { x.BackgroundColor(Color.FromRgba(255, 255, 255, 0)); });
var encoder = new PngEncoder() { TransparentColorMode = PngTransparentColorMode.Preserve };
test.SaveAsPng("out.png", encoder); Unfortunately, the result turns out unchanged: it has a black transparent background. I tried messing around with different Is this possible? Did I miss something easy? Thanks for your work and help! |
Beta Was this translation helpful? Give feedback.
Answered by
JimBobSquarePants
Mar 13, 2023
Replies: 1 comment 6 replies
-
I cannot replicate this. |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
JimBobSquarePants
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I cannot replicate this.