Fill an area while keeping transparency

In Paint.NET I’d like to change the color of an icon by using the fill tool, but I want to preserve the alpha-channel of the pixels. There’s the same question for Photoshop, but I can’t find a solution for Paint.NET.

Before fill:

Pixels with alpha channel

After fill:

Pixels without alpha channel

As you can see, the semi-transparent pixels lose their alpha-cannel value. Is there a way to achieve this in Paint.NET?

Answer

This is something I was looking for as well. The code was almost identical to the sample code of the CodeLab Tutorial Part 1 – Simple plugins walkthrough. So after a couple minutes, there is now a simple plugin to do this job right from Paint.NET.

https://github.com/friedrickjoel/AlphaColor/raw/main/AlphaColor.dll

Attribution
Source : Link , Question Author : Gene , Answer Author : Joel

Leave a Comment