Convert to Transparent Paint.NET effect

The Convert To Transparent project is a Paint .NET effect that converts images into transparent images, using each pixel's lightness as the key to transparency.

Uses
Scanned images (e.g. line art) are very difficult to combine onto a canvas because selecting them using imaging tools (magic wands etc) results in ugly white/grey edges because of the natural 'fuzziness' of strokes.

What you want is a representation of the fuzzy stroke edges as transparency, not shades of grey.

The Convert To Transparent effect converts pixels to transparent pixels, with the opacity based on the visibility of each pixel. That is, the lighter the colour, the more transparent it will be. The colour itself is adjusted to compensate for its reduced opacity.

It works best with greyscale or black/white line art images but can be used on full-colour images too.

Last edited Jan 6, 2014 at 11:22 AM by EdwinGroenendaal, version 2