firesickle Posted May 9, 2009 Share Posted May 9, 2009 I hope you guys dont kill me for asking, but I was wondering if someone could direct me to a post that tells me how to make macros, or effects, or something of the like that can perform simple tasks for me. Maybe these tasks already exist in PaintDotNet, I could not find them, and I couldn't get any good results searching the forum. heres the code I am turning into simple macro/plugin SelectionSize: 218x93 SelectionLocation: 476x21 CanvasSize: 1200x800 Sub CenterHorizontally(SelectionSize, SelectionLocation, CanvasSize) Dim CenterX as Integer = (CanvasSize.X / 2) - (SelectionSize.X / 2) SelectionLocation.X = CenterX End Sub Sub CenterVertically(SelectionSize, SelectionLocation, CanvasSize) Dim CenterY as Integer = (CanvasSize.Y / 2) - (SelectionSize.Y / 2) SelectionLocation.Y = CenterY End Sub Sub Center(SelectionSize, SelectionLocation, CanvasSize) Dim CenterX as Integer = (CanvasSize.X / 2) - (SelectionSize.X / 2) Dim CenterY as Integer = (CanvasSize.Y / 2) - (SelectionSize.Y / 2) SelectionLocation.X = CenterX SelectionLocation.Y = CenterY End Sub Quote Too often we live in the past and long for the future letting the present pass us by. Link to comment Share on other sites More sharing options...
Simon Brown Posted May 9, 2009 Share Posted May 9, 2009 Unfortunately Paint.NET doesn't support macros beyond effects and the effect composition support ScriptLab provides. Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted May 10, 2009 Share Posted May 10, 2009 If you're looking to begin coding effects, the answers provided by BoltBait to this thread are a particularly good place to begin: viewtopic.php?p=261395#p261395 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...
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.