Advertisement


Fill an area while keeping transparency


Question

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?

2017/04/13
1
7
4/13/2017 12:46:00 PM

Accepted 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://www.dropbox.com/s/pxrjmieg19k9x8r/AlphaColor.dll?dl=0

2017/07/18
14
7/18/2017 6:04:00 PM