-
-
Notifications
You must be signed in to change notification settings - Fork 44
Closed
Description
Using the following on an existing image to clear it does nothing...
imageToProcess.Mutate(i => i.Fill(SixLabors.ImageSharp.Color.Transparent));
However doing the following works...
var graphicsOptions = new GraphicsOptions
{
AlphaCompositionMode = PixelAlphaCompositionMode.Clear
};
var rectangle = new RectangleF(0, 0, imageToProcess.Width, imageToProcess.Height);
imageToProcess.Mutate(i => i.Fill(graphicsOptions, SixLabors.ImageSharp.Color.Transparent, rectangle));
I assume the defaults should of been good enough for the first to work
JimBobSquarePants
Metadata
Metadata
Assignees
Labels
No labels