Enormator Posted August 19, 2007 Share Posted August 19, 2007 It calculates for every pixel the difference between the pixel and the primary color. The more they are equal, the more alpha will rest. Just duplicate your layer, do my effect with a Primary color selected, maybe some fine tuning with Curves+ alpha channel and there you go affecting only this specially colored part of the image without need of feathering or anything because it's always a smooth gradient from layer to change to the original image layer. Download here: EffectDLL.zip Unzip it into your Effects directory in the Paint.NET folder. It will be listed under Effects -> Color example: 1 to 2: Here i first chose the sky's color as primary with the Color Picker :ColorPicker: then I ran my effect. 2 to 3: After that I did some alpha fine tuning with Curves+ :Curves: . And the only color effect I added to the sky was increasing saturation and a little hue adjustment . 3 to 4: I put the original image as a layer under the modified one. Link to where you get Curves+ code (Codelab): int dr,dg,db; void Render(Surface dst, Surface src, Rectangle rect) { PdnRegion selectionRegion = EnvironmentParameters.GetSelection(src.Bounds); // Delete any of these lines you don't need Rectangle selection = this.EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt(); ColorBgra PrimaryColor = (ColorBgra)EnvironmentParameters.PrimaryColor; ColorBgra CurrentPixel; for(int y = rect.Top; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) { if (selectionRegion.IsVisible(x, y)) { CurrentPixel = src[x,y]; dr = CurrentPixel.R - PrimaryColor.R; dg = CurrentPixel.G - PrimaryColor.G; db = CurrentPixel.B - PrimaryColor.B; if (dr < 0) dr=-dr; if (dg < 0) dg=-dg; if (db < 0) db=-db; CurrentPixel.A = (byte)(255-((dr+dg+db)/3)); dst[x,y] = CurrentPixel; } } } } I'm currently searching for a good 16x16 png icon. Please tell me your ideas. Quote :Link: website Link to comment Share on other sites More sharing options...
Bob Posted August 19, 2007 Share Posted August 19, 2007 Hmm... WOOT! It's Curves+ alpha tweaking made simple, in some sort. Quote No. Way. I've just seen Bob. And... *poof!*—just like that—he disappears into the mist again. ~Helio Link to comment Share on other sites More sharing options...
lestat2000_vamp Posted August 19, 2007 Share Posted August 19, 2007 thanks look nice tuts.....!!! Quote Link to comment Share on other sites More sharing options...
Aron Posted August 19, 2007 Share Posted August 19, 2007 i have been waiting for this a long time Quote My Deviant Link to comment Share on other sites More sharing options...
Ash Posted August 19, 2007 Share Posted August 19, 2007 thanks look nice tuts.....!!! :?: What :?: You keep saying nice tuts in plugin section? Quote All creations Ash + Paint.NET [ Googlepage | deviantArt | Club PDN | PDN Fan ] Link to comment Share on other sites More sharing options...
The_Lionhearted Posted August 19, 2007 Share Posted August 19, 2007 I'm a little confused...where would I want to use something like this? Enormator, could you explain the use for your plugin? Quote My Gallery Link to comment Share on other sites More sharing options...
Enormator Posted August 20, 2007 Author Share Posted August 20, 2007 You can use it always when you want to edit a picture. Use instead of a selection to get a better gradient without feathering. You are the artist. I just wrote this plugin to use it for my self and because I'm a nice guy, I posted it here. For creativity, ask god Quote :Link: website Link to comment Share on other sites More sharing options...
davidtayhs Posted August 20, 2007 Share Posted August 20, 2007 What settings did you use for the plugins? Quote Link to comment Share on other sites More sharing options...
The_Lionhearted Posted August 20, 2007 Share Posted August 20, 2007 You can use it always when you want to edit a picture. Use instead of a selection to get a better gradient without feathering.You are the artist. I just wrote this plugin to use it for my self and because I'm a nice guy, I posted it here. For creativity, ask god Thanks for answering Enormator. I'll give it a shot! Quote My Gallery Link to comment Share on other sites More sharing options...
blooper101 Posted August 20, 2007 Share Posted August 20, 2007 It looks like it makes the image more vivid to me. I likey! [E to the d-it]Whoops, nevermind, I just read right after the pictures. My bad. Asking god for creativity :oops: Quote Link to comment Share on other sites More sharing options...
RECON04 Posted August 21, 2007 Share Posted August 21, 2007 maybe he means toots like hey toots hows your day ? lol anyways nice plugin imma go try it out now Quote Link to comment Share on other sites More sharing options...
davidtayhs Posted August 22, 2007 Share Posted August 22, 2007 Hi Enormator, I really don't know how you managed to use the curves+ plugin to change your second picture into the third with bleached buildings against a blue sky! Must be more than just fine adjustments with curves and little fine-tuning with hues!!! Quote Link to comment Share on other sites More sharing options...
Enormator Posted August 24, 2007 Author Share Posted August 24, 2007 Please note, that all the effects were made on top layer. At the end I set the original layer under the changed layer to visible again. Quote :Link: website Link to comment Share on other sites More sharing options...
davidtayhs Posted August 25, 2007 Share Posted August 25, 2007 Hi Enormator! I'll take the risk of revealing my ignorance by telling you that I don't know how to change the second picture to the third, nor the third to the fourth in the example that you gave!! Wonder if you could explain the steps but if it's too bothersome, it's alright. Quote Link to comment Share on other sites More sharing options...
Enormator Posted August 25, 2007 Author Share Posted August 25, 2007 No of course it's not to bothersome It's always good, when people ask because I tend to explain in a quite ununderstandable way. EDIT: I redid the explanation of the example in first post. Is it understandable now? Please ask because I can't see your thoughts. :wink: Quote :Link: website Link to comment Share on other sites More sharing options...
davidtayhs Posted August 26, 2007 Share Posted August 26, 2007 Lol! I'm sorry but the revised pictures tell me what I already can do - run your plugin on the first picture. But in your example there is a third picture: How do I get that effect from your second picture using the curves+ plugin? From what I can see, just using your plugin alone cannot get me the same end-result that you obtained using curves+ and the hue adjustment plugins. Tried running the curves + plugin but could never get to the third picture. Quote Link to comment Share on other sites More sharing options...
jsonchiu Posted August 26, 2007 Share Posted August 26, 2007 make the alpha values more contrast, and then put it on a white background. Quote Some links: | Personal Website | Alien Attack | Try out my plugins: | Antialias | Diagonal Lines | Link to comment Share on other sites More sharing options...
davidtayhs Posted August 27, 2007 Share Posted August 27, 2007 Lol!!! But how?!!! Quote Link to comment Share on other sites More sharing options...
Enormator Posted August 29, 2007 Author Share Posted August 29, 2007 Your curves+ must be set to alpha mode. Then your curve should look something like that ___ / / / ___________/ Then when only the parts of the image which you want to modify are still visible, you can run any effect, in my case Hue/Saturation. But you could also do any other effect to the sky or the part of your image, which you selected. Quote :Link: website Link to comment Share on other sites More sharing options...
jsonchiu Posted September 2, 2007 Share Posted September 2, 2007 This plugin should be called "Primary Color to Alpha" Quote Some links: | Personal Website | Alien Attack | Try out my plugins: | Antialias | Diagonal Lines | Link to comment Share on other sites More sharing options...
Enormator Posted September 11, 2007 Author Share Posted September 11, 2007 Nice idea. Thank you. I renamed the thread and the Effect. It's now in the Color Submenu. I'm searching for a good 16x16 png icon for the Effect. If you have a good idea, pleas post here. Redownload the dll to make the changes apply. Quote :Link: website Link to comment Share on other sites More sharing options...
Enormator Posted September 15, 2007 Author Share Posted September 15, 2007 Would you like it if this plugin would also support Hue difference mode? If there is at least one person who would find it useful, then I'll code it, otherwise not. Quote :Link: website Link to comment Share on other sites More sharing options...
Blooper Posted September 16, 2007 Share Posted September 16, 2007 Can you post the .dll file? WinZip won't unzip anything anymore Is there a free alternative to WinZip? Quote http://synthastic.deviantart.com http://soundcloud.com/siderealenterprise Lockerz invites are available, PM me Link to comment Share on other sites More sharing options...
pyrochild Posted September 16, 2007 Share Posted September 16, 2007 Can you post the .dll file? WinZip won't unzip anything anymore Is there a free alternative to WinZip? Windows has had built-in ZIP file support since XP. You don't need WinZip or any other program to open it... For other kinds of archives, though, try 7-zip. Quote ambigram signature by Kemaru [i write plugins and stuff] If you like a post, upvote it! Link to comment Share on other sites More sharing options...
Fisherman's Friend Posted September 16, 2007 Share Posted September 16, 2007 Windows has had built-in ZIP file support since XP. I think it has ZIP support even in ME, but you have to install it seperately from the cd. However, programmes for ZIP can just be found via web search. 7 Zip is good, but you should try to get a stable version. There are only betas released for a while. Quote Link to comment Share on other sites More sharing options...
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.