Popular Post BoltBait Posted February 16, 2017 Popular Post Share Posted February 16, 2017 Due to a request here: http://forums.getpaint.net/index.php?/topic/111023-need-color-temperature-control-equivalent-to-windows-live-photo-gallery/ I created a Temperature / Tint Adjustment plugin. It is found under the Adjustment menu. User Interface: Algorithm: This is where I found the algorithm that I used: http://www.tannerhelland.com/5675/simple-algorithms-adjusting-image-temperature-tint/ Here you can visualize the sliders overlaid on the standard color wheel: CodeLab Script: // Name: Temperature/Tint // Submenu: Adjustment // Author: BoltBait // Title: BoltBait's Temperature/Tint v1.3 // Version: 1.3 // Desc: Adjust the Temperature or Tint of a photograph // Keywords: Temperature|Tint // URL: http://BoltBait.com/pdn #region UICode IntSliderControl Amount1 = 0; // [-20,20] Temperature IntSliderControl Amount2 = 0; // [-20,20] Tint CheckboxControl Amount3 = false; // [0,1] Preview original image #endregion private byte Clamp2Byte(int iValue) { if (iValue < 0) return 0; if (iValue > 255) return 255; return (byte)iValue; } unsafe void Render(Surface dst, Surface src, Rectangle rect) { for (int y = rect.Top; y < rect.Bottom; y++) { if (IsCancelRequested) return; ColorBgra* srcPtr = src.GetPointAddressUnchecked(rect.Left, y); ColorBgra* dstPtr = dst.GetPointAddressUnchecked(rect.Left, y); for (int x = rect.Left; x < rect.Right; x++) { ColorBgra CurrentPixel = *srcPtr; if (!Amount3) { CurrentPixel.R = Clamp2Byte(CurrentPixel.R + Amount1); // Temperature CurrentPixel.B = Clamp2Byte(CurrentPixel.B - Amount1); // Temperature CurrentPixel.G = Clamp2Byte(CurrentPixel.G + Amount2); // Tint } *dstPtr = CurrentPixel; srcPtr++; dstPtr++; } } } Download: Download as part of my plugin pack, here: https://forums.getpaint.net/BoltBaitPluginPack Support: This plugin is for paint.net 4.0.6+ If you are running Paint.NET 3.5.11, you can build your own copy using the CodeLab source above. You'll need to update the UICode region by replacing "IntSliderControl" with "int" and "CheckboxControl" with "bool". Or, if CodeLab scares you, download the 3.5.11 version here: http://forums.getpaint.net/index.php?/topic/111031-temperature-tint-adjustment/&do=findComment&comment=527785 1 9 Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
Seerose Posted February 16, 2017 Share Posted February 16, 2017 Sir BB! Thanks for posting this awesome tut. Quote Live as if you were to die tomorrow. Learn as if you were to live forever. Gandhi Link to comment Share on other sites More sharing options...
Pixey Posted February 16, 2017 Share Posted February 16, 2017 This is a great Plugin @BoltBait and thank you . Perfect for getting a very subtle change in color on photos and will have many other uses as well. Before After 5 Quote How I made Jennifer & Halle in Paint.net My Gallery | My Deviant Art "Rescuing one animal may not change the world, but for that animal their world is changed forever!" anon. Link to comment Share on other sites More sharing options...
Maximilian Posted February 16, 2017 Share Posted February 16, 2017 Thanks for the code, BoltBait! Is it okay if I post a zip with a 3.5.11 compilation for those who may not have (or may be afraid of) CodeLab? 1 Quote Link to comment Share on other sites More sharing options...
BoltBait Posted February 16, 2017 Author Share Posted February 16, 2017 Sure, go ahead and post it. Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
Maximilian Posted February 16, 2017 Share Posted February 16, 2017 (edited) Here it is: BoltBait's TemperatureTint for PdN 3.5.11.zip Edited February 17, 2017 by Maximilian Added icon and batch file for installing 2 Quote Link to comment Share on other sites More sharing options...
dipstick Posted February 17, 2017 Share Posted February 17, 2017 17 hours ago, BoltBait said: If you are running Paint.NET 3.5.11, you can build your own copy using the CodeLab source above. You'll need to update the UICode region by replacing "IntSliderControl" with "int" and "CheckboxControl" with "bool". Thanks for the info BoltBait. I downloaded CodeLab v1.8 and made my own v3.5.11 compatible dll with my own icon. I did it in Linux under wine. It was touch and go for a while, but I managed to make a working version. Quote Link to comment Share on other sites More sharing options...
Lloyd Posted February 17, 2017 Share Posted February 17, 2017 A useful addition to my adjustment plugins, thanks for the work. Quote Link to comment Share on other sites More sharing options...
mawhaley1 Posted November 4, 2022 Share Posted November 4, 2022 Ok, I may be an idiot, lol, but I don't see where to get the plugin or how to install it. I'm using the app on my work computer. I only have the full program on my laptop at home. Thanks for any help. Quote Link to comment Share on other sites More sharing options...
Pixey Posted November 4, 2022 Share Posted November 4, 2022 Hi @mawhaley1 and welcome to the forum. You get the Plugin via @BoltBait's Plugin Pack, found here. And here is a link to How to Install Plugins. Quote How I made Jennifer & Halle in Paint.net My Gallery | My Deviant Art "Rescuing one animal may not change the world, but for that animal their world is changed forever!" anon. 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.