Sign in to follow this  
Followers 0
SeriousSam

Color Channel Mixer

2 posts in this topic

I have been working on an effect that can mix the channels (Alpha, Red, Green, Blue) in each color and perform addition and scaling on the channel.

For each channel the following is done

channel = ((source) + add) * scale

IF Invert

channel = 255 - channel

DialogScreenshot.png

The "source" can be

- Alpha, Red, Green, Blue : standard channels in a color

- Default : orig value of channel

- Set : user defined value

- intensity : color intensity

If the source is "set" the value from track bar is used.

The add amount is next applied and can be -255 to 255.

The value can then be scaled (multiplied) by 0.0 to 10.0

And last the value can be inverted.

The order that channels are processed can be set with combo boxes or by clicking the labels with "->" to shift the order right.

Install

Drag the dll into the "*\Paint.Net\Effect" folder and in the Effects->Photo menu "Channel Mix Effect" and a lightweight "Alpha Mixer" version should appear.

Download

I uploaded both the effect file dll and the vs2008 solution if anyone cares to look at the source code.

PDNAlphaAdj.zip

PDNAlphaAdj.zip

1

Share this post


Link to post
Share on other sites

Thank you!

Maybe I'm wrong, but is it kind of curves (+)?

For me this one is easier :)

I like it.

So thanks (again)

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0