Jump to content
How to Install Plugins ×
Paint.NET 5.1 is now available! ×

Recommended Posts

Posted (edited)

Effects > Color > Subtract Color

This is one approach to the "color to alpha" idea. The transparency of each pixel depends on how similar its color is to the selected color. The resulting image has the following property: if a layer of the selected color is placed underneath the resulting image, it will look (almost) exactly like the original image.

Suggestions:

  • It is usually better to select an area to remove color from, rather than applying this effect to the whole image.
  • For best results, choose an extreme color (fully saturated, black or white) instead of a color close to an extreme value (e.g. choose RGB (255, 0, 100) rather than RGB (245, 10, 100)).

subtract_color.jpg

The parameters are:

Color - pixels of this color will have the maximum transparency. The closer a pixel's color is to this value, the more transparent it will be.

Function - "subtract color" (the main function), "show alpha as grayscale" (display fully transparent pixels as black, opaque pixels as white and semi-transparent pixels as gray) or "show original image" (for quick comparison).

Tolerance - affects how similar a pixel needs to be to the chosen color to be made transparent.

Tolerance sharpness - degree of "feathering" at the edge of the tolerance value (between transparent and non-transparent pixels).

Alpha intensity - maximum transparency to assign the pixels (100 means fully transparent).

Any feedback welcome!

Download: SubtractColor.zip

(For another plugin with a different approach, see Tanel's Color to Alpha: http://forums.getpai...?showtopic=7767)

Edited by davidf
Posted

Another useable plug-in davidf, I like it :)

Thanks Nitenurse79 (or should that be Mrs Forum Troll of 2011??). You're always encouraging!

Posted

Thanks Nitenurse79 (or should that be Mrs Forum Troll of 2011??). You're always encouraging!

Your welcome :)

I hope for a better title in the future, (hint hint) ;)

You can call me whatever you want, just don't call me when I am asleep (or in a bad mood) :lol:

 

ZXCBOoZ.png

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...