Jump to content

Looking for a direction, hopefully


Recommended Posts

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

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

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...