SeriousSam Posted April 12, 2009 Posted April 12, 2009 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 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 Quote
wiirus Posted May 15, 2009 Posted May 15, 2009 Thank you! Maybe I'm wrong, but is it kind of curves (+)? For me this one is easier I like it. So thanks (again) Quote I'm still learning, trying to get better. Critics, even bad ones, help me.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.