Sign in to follow this  
Followers 0
Vanthex

Help needed for coding a plugin

6 posts in this topic

Hi guys,

I want to code a plugin where the user selects a region and then when I run the plugin, it takes those pixels and flips it or mirrors it and duplicates it relative to the original selection. I'm not very good at coding but I'm still learning to write Paint.net plugins. Since this would only involve essentially just copy and pasting, and some simple rotation I hope it wouldn't be a complicated plugin. It would be greatly appreciated if some of you guys can walk me through each line of code so that I can understand how it works and I can learn from it too. (I read the tutorials but it's not exactly what I wanted).

0

Share this post


Link to post
Share on other sites
41 minutes ago, Vanthex said:

takes those pixels and flips it or mirrors it and duplicates it relative to the original selection

So you want it to flip the selection, or mirror half of the selection to the other half? or have options for both?

Are you using CodeLab to do this?

0

Share this post


Link to post
Share on other sites

Mock up what you want, and will see if someone can help you.

0

Share this post


Link to post
Share on other sites

As described ("takes those pixels and flips it or mirrors it and duplicates it"), it sounds impossible. That sounds like the plugin needs to write ouside of the selection, which plugins can't do. I may be misinterpreting the goal of the plugin. If so, I'd appreciate a more precise and detailed description of what the plugin is supposed to do.

0

Share this post


Link to post
Share on other sites
21 hours ago, Vanthex said:

takes those pixels and flips it or mirrors it and duplicates it relative to the original selection

 

Maybe what you need is in my plugin pack under Effects > Fill > From (clipboard/file)?

0

Share this post


Link to post
Share on other sites
20 hours ago, toe_head2001 said:

So you want it to flip the selection, or mirror half of the selection to the other half? or have options for both?

Are you using CodeLab to do this?

So basically it takes the selection, and pastes a rotated clone next to it.

Just now, BoltBait said:

 

Maybe what you need is in my plugin pack under Effects > Fill > From (clipboard/file)?

Yes something like that but some of them are like rotated.

For example if this is selected (or from clipboard/file since someone mentioned that doing stuff outside of selection is impossible)

2d29b18383dc8501cf8ca49a12ad1386.png

After i run the plugin this would be generated (you get to customize the rotations):
ef45aba2f4c6fb63cca16de5f01b6398.png

Basically an improvement of the pre-existing fill plugin. But I want to know the code. I have both CodeLab and Visual Studio

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0