Skip to content

Filling with a transparent color does not work as expected #26

@equinox2k

Description

@equinox2k

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions