TechnoRobbo Posted June 12, 2013 Share Posted June 12, 2013 (edited) A slightly different take on the sketch plugin.You will find it in the Menu: Effects - > Artistic Version 1.1 uploaded 10:15 PM Wednesday, June 12, 2013 (UTC) - Noise Filter Implemented . The Code: Hidden Content: // Submenu: Artistic // Name: Line Tracer // Title: Line Tracer - v1.0 // Author: TechnoRobbo // URL: http://www.technorobbo #region UICode int Amount1 = 3; // [1,7] Line Width int Amount2 = 4;// [1,10] Threshold int Amount3 = 20;// [0,50] Color #endregion void Render(Surface dst, Surface src, Rectangle rect) { ColorBgra CP; ColorBgra CO; ColorBgra CO2; ColorBgra H2O; int tmp =0; int tmp2 =0; for (int y = rect.Top; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) { CP = src[x,y]; CO = src.GetBilinearSampleClamped(x-Amount1,y-Amount1); CO2 = src.GetBilinearSampleClamped(x-Amount1,y); H2O = src.GetBilinearSampleClamped(x,y-Amount1); HsvColor hsv = HsvColor.FromColor(CP.ToColor()); HsvColor hsv2 = HsvColor.FromColor(CO.ToColor()); HsvColor hsv3 = HsvColor.FromColor(CO2.ToColor()); HsvColor hsv4 = HsvColor.FromColor(H2O.ToColor()); int H = hsv.Hue ; int S = Amount3 * hsv.Saturation/100 ; int V = Math.Abs(hsv.Value-hsv2.Value); tmp = Math.Abs(hsv.Value-hsv3.Value); tmp2 = Math.Abs(hsv.Value-hsv4.Value); if (V < Amount2 && tmp < Amount2 && tmp2 < Amount2){ V=100; } else { V=0; } hsv = new HsvColor(H,S,V); ColorBgra NP = ColorBgra.FromColor(hsv.ToColor()); NP.A = CP.A; dst[x,y] = NP; } } } Line Tracer.zip Edited September 19, 2015 by TechnoRobbo 2 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...
DrewDale Posted June 12, 2013 Share Posted June 12, 2013 Cool. Reminds me of the old school comic books. Top work TechnoRobbo. Heres one with a frame Original image 1 Quote Link to comment Share on other sites More sharing options...
midora Posted June 12, 2013 Share Posted June 12, 2013 Hard-working :-) At a certain time you should think about to create a pack. DrewDale: Just because your image reminds me: http://www.sitzmusterdestodes.com/ Quote Link to comment Share on other sites More sharing options...
Red ochre Posted June 12, 2013 Share Posted June 12, 2013 'ChemicalBgra's - - Quote Red ochre Plugin pack.............. Diabolical Drawings ................Real Paintings Link to comment Share on other sites More sharing options...
BoltBait Posted June 12, 2013 Share Posted June 12, 2013 There's a typo in the script. You're setting "tmp" twice in a row. I'm thinking the second one should be "tmp2". Also, hsv3 and hsv4 are being set from the same color sample? Hope this helps. Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
skullbonz Posted June 12, 2013 Share Posted June 12, 2013 Man dude,you're pumping out the plugins,I agree,might be pack time. Nice work TechnoRobbo,loving it. Quote http://forums.getpaint.net/index.php?/topic/21233-skullbonz-art-gallery Link to comment Share on other sites More sharing options...
TechnoRobbo Posted June 12, 2013 Author Share Posted June 12, 2013 Boltbait, Thanks I missed that, thats part of the algorithm is for noise reduction. I'll post the change when I get home. Thanks Again 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...
TechnoRobbo Posted June 12, 2013 Author Share Posted June 12, 2013 version 1.1 Uploaded - Thanks BoltBait 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...
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.