-
Beta Was this translation helpful? Give feedback.
Answered by
dlemstra
Aug 3, 2020
Replies: 2 comments
-
Your image has a transparent background. If you want to have a white background when you save the file as a jpeg you can color the alpha channel with the following code: using (MagickImage reformat = new MagickImage(inputImage))
{
reformat.ColorAlpha(MagickColors.White);
reformat.Write(ExportImage);
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dlemstra
-
Oh, that fixed it! Thanks
…On Mon, Aug 3, 2020 at 2:55 PM Dirk Lemstra ***@***.***> wrote:
Your image has a transparent background. If you want to have a white
background when you save the file as a jpeg you can color the alpha channel
with the following code:
using (MagickImage reformat = new MagickImage(inputImage))
{
reformat.ColorAlpha(MagickColors.White);
reformat.Write(ExportImage);
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#710 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAXDH6AHWZ5FYPBKUPGLZDDR64I37ANCNFSM4PTNPI4Q>
.
|
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
Your image has a transparent background. If you want to have a white background when you save the file as a jpeg you can color the alpha channel with the following code: