TechnoRobbo Posted July 8, 2013 Share Posted July 8, 2013 (edited) TR's Colorizer HMS Plugin (H=Highlight M=Midtones S=Shadow) Smoothly adjust between 3 Colors to achieve effects from Subtle to Extreme Menu: Effects->Color . More Mila The Code Hidden Content: // Submenu: Color // Name: TR's ColorizerHMS // Title: TR's ColorizerHMS - v1.0 // Author: TechnoRobbo // URL: http://www.technorobbo #region UICode ColorBgra Amount1 = ColorBgra.FromBgr(0,0,0); // Shadow ColorBgra Amount2 = ColorBgra.FromBgr(0,0,0); // Mid Tones ColorBgra Amount3 = ColorBgra.FromBgr(0,0,0); // Highlights #endregion void Render(Surface dst, Surface src, Rectangle rect) { ColorBgra CP; for (int y = rect.Top; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) { CP = src[x,y]; double ColorAvg=(CP.R + CP.G + CP. /3; double interp=Math.Abs(ColorAvg/ 128 - 1); if (ColorAvg<128){ CP.R =(byte)((double)Amount1.R * interp + (double)Amount2.R - (double)Amount2.R * interp); CP.G =(byte)((double)Amount1.G * interp + (double)Amount2.G - (double)Amount2.G * interp); CP.B =(byte)((double)Amount1.B * interp + (double)Amount2.B - (double)Amount2.B * interp); }else{ CP.R =(byte)((double)Amount3.R * interp + (double)Amount2.R - (double)Amount2.R * interp); CP.G =(byte)((double)Amount3.G * interp + (double)Amount2.G - (double)Amount2.G * interp); CP.B =(byte)((double)Amount3.B * interp + (double)Amount2.B - (double)Amount2.B * interp); } dst[x,y] = CP; } } } TR'sColorizerHMS.zip Edited December 28, 2015 by TechnoRobbo Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
nitenurse79 Posted July 9, 2013 Share Posted July 9, 2013 I could not resist - It even works on a Horse. A good plugin by the way Quote Link to comment Share on other sites More sharing options...
TechnoRobbo Posted July 9, 2013 Author Share Posted July 9, 2013 now that's a horse of a different color Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted July 9, 2013 Share Posted July 9, 2013 Don't look it in the mouth Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
TechnoRobbo Posted July 9, 2013 Author Share Posted July 9, 2013 i gotta quit horsin' around and get back to work Quote Go out there and be amazing. Have Fun, TRSome Pretty Pictures Some Cool Plugins Link to comment Share on other sites More sharing options...
nitenurse79 Posted July 9, 2013 Share Posted July 9, 2013 Don't look it in the mouth i gotta quit horsin' around and get back to work I love it on here 1 Quote Link to comment Share on other sites More sharing options...
skullbonz Posted July 13, 2013 Share Posted July 13, 2013 lol Quote http://forums.getpaint.net/index.php?/topic/21233-skullbonz-art-gallery 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.