BoltBait Posted January 24 Share Posted January 24 The Stylize > Edge Detect effect was rewritten for Paint.NET v5.0 and several people have requested the old edge detect effect back. So, here it is: This is the "classic" (pre v5.0) version of Stylize > Edge Detect. Download EdgeDetectClassic.zip Download this zip file to your desktop. Unzip it. Run the included Install_EdgeDetectClassic batch file. After install, you should find the effect in the Effects > Stylize menu under the name of "Edge Detect Classic". Source CodeLab script: Spoiler // Name: Edge Detect Classic // Submenu: Stylize // Author: BoltBait // Title: BoltBait's Edge Detect Classic v1.0 // Version: 1.0 // Desc: Old-School Edge Detect // Keywords: edge|detect|classic // URL: https://BoltBait.com/pdn // Help: Edge Detect Classic v1.0\nUI ©2023 by BoltBait\nAlgorithm ©2004 by Chris Crosetto\nAll rights reserved. #region UICode AngleControl Amount1 = 45; // [-180,180] Edge Detect Angle #endregion EdgeDetectEffect edgedetectEffect = new EdgeDetectEffect(); PropertyCollection edgedetectProps; protected override void OnDispose(bool disposing) { if (disposing) { edgedetectEffect?.Dispose(); edgedetectEffect = null; } base.OnDispose(disposing); } void PreRender(Surface dst, Surface src) { edgedetectEffect.EnvironmentParameters = EnvironmentParameters; edgedetectProps = edgedetectEffect.CreatePropertyCollection(); PropertyBasedEffectConfigToken edgedetectParameters = new PropertyBasedEffectConfigToken(edgedetectProps); edgedetectParameters.SetPropertyValue(EdgeDetectEffect.PropertyNames.Angle, Amount1); edgedetectEffect.SetRenderInfo(edgedetectParameters, new RenderArgs(dst), new RenderArgs(src)); } void Render(Surface dst, Surface src, Rectangle rect) { edgedetectEffect.Render(new Rectangle[1] {rect},0,1); } Enjoy. 👍 3 1 1 Quote Download: BoltBait's Plugin Pack | CodeLab | and a Computer Dominos Game Link to comment Share on other sites More sharing options...
user.by Posted January 25 Share Posted January 25 Sorry, didnt work, plugin error. Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted January 25 Share Posted January 25 4 minutes ago, user.by said: Sorry, didnt work, plugin error. Did you forget to update to paint.net v5.0.1? 1 Quote (June 9th, 2023) Sorry about any broken images in my posts. I am aware of the issue. My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
user.by Posted January 25 Share Posted January 25 1 hour ago, toe_head2001 said: Did you forget to update to paint.net v5.0.1? Thanks, i had tried with 5.0 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.