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

Recommended Posts

Posted (edited)

I was playing around a bit in CodeLab when I got an idea for a plugin. Thus, Alphalizer was born.

 

This effect plugin changes the image's alpha channel based on each pixel's original colors using the selected method. It's highly customizable and easy to use. The different calculation methods yield different results, select the one that fits best for your work. You can find it under Effects > Object.

 

Here's a before-after:

 

post-138332-0-91895400-1416228603_thumb.

(Better quality)

 

The technicals (for those interested):

 

The plugin gets the new alpha value by converting the original color to black and white using the selected method. The calculated value is inverted (if set) and the original alpha will be used as a multiplier (if set). Then the value is re-scaled according to the min-max sliders before being applied to the image.

The image, by default, will be set to a uniform color, and the only difference between pixels will be the alpha channel. Selecting "Retain original" as the used color will result in only the alpha channel being modified.

 

Developed in CodeLab (Thanks, BoltBait!), refined in SharpDevelop, built in the command line (SD built version wasn't showing itself in the effects menu :P ).

 

Constructive criticism, virtual pat on the back, usage examples, suggestions and bug / typo reports are welcome  :) .

 

(And before anyone asks, yes, the initial release is actually v2.0, as the original wasn't fit for public showing.)

Alphalizer.zip

Edited by Rider01
  • Like 1
  • Upvote 5

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...