Vanthex Posted December 31, 2016 Share Posted December 31, 2016 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). Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted December 31, 2016 Share Posted December 31, 2016 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? Quote My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
BoltBait Posted December 31, 2016 Share Posted December 31, 2016 Mock up what you want, and will see if someone can help you. Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
MJW Posted January 1, 2017 Share Posted January 1, 2017 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. Quote Link to comment Share on other sites More sharing options...
BoltBait Posted January 1, 2017 Share Posted January 1, 2017 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)? Quote Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
Vanthex Posted January 1, 2017 Author Share Posted January 1, 2017 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) After i run the plugin this would be generated (you get to customize the rotations): Basically an improvement of the pre-existing fill plugin. But I want to know the code. I have both CodeLab and Visual Studio 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.