Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: C# Replacing a transparent background with White

$
0
0
Setting the background color does not change it. If you want to change the transparent pixels to a solid color you should do the following:
MagickImage img = new MagickImage(source);
img.ColorAlpha(System.Drawing.Color.White); // There is an implicit cast from Drawing.Color to MagickColor
p.s. you don't need to set geometry.IsPercentage to false. This is the default.

Viewing all articles
Browse latest Browse all 3693

Trending Articles