Yob Posted April 13, 2009 Share Posted April 13, 2009 Hello, i am new at programming plugins. I want to creat a cutting plugin. Why? My problem is the selction area is not fixed by coords and this takes much times for perfekt positioncut. steps: 1. open scanned cd imagine 2. start plugin 3. give start coords (x=0,y=0) set constand selectionarea (x=1109; y=1200) 4. cut it addon: 5. change dpi & size (also constand parameters) 6. save it as new file with out changing original file Can i make it with the plugin "code lab" ? because i can't really c++ programming. thanks for answer best greetz yob. Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted April 14, 2009 Share Posted April 14, 2009 Hi Yob, I'm glad you're interested in writing plugins, and am happy to help, but I can't shake the feeling that you might be missing a fairly easy technique for performing this crop operation. Here's how I would do the crop: 1. Open your scanned image 2. Select all the image with the keyboard combo CTRL + A 3. Copy the image to the clipboard with the keyboard combo CTRL + C 4. Now create a new image, and type in the correct dimensions (1109 x 1200 pixels) 5. Hit the keyboard combo CTRL + V 6. A dialog box will open asking if you want to expand the canvas or not, select the keep original size option 7. The scanned image will be pasted onto the new 1109 x 1200 image with the move automatically selected 8. Move the image around with the left mouse button until you have it positioned correctly 9. Save this image This might be easier than writing a plugin :wink: 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...
Yob Posted April 14, 2009 Author Share Posted April 14, 2009 Hi Ego Eram Reputo, my problem is the time for finding the correct position because i want to edit 1600 imagines later . Therefore, i would like to automate this process. I need a batch processing to be exact, which unfortunately is not supported. So I would like to include such a plugin if it works . Yob. Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted April 15, 2009 Share Posted April 15, 2009 Check out Scriptlab Especially the bit where Pyrochild says: As of July 4, 2008, ScriptLab comes with ScriptLab Batch Processor, which allows you to apply an SLS script to an unlimited number of images at once. I don't quite see the improvement in using a plugin, because you're still going to have to position the "crop window" each time aren't you? Won't this defeat the batch processing idea? 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...
Yob Posted April 15, 2009 Author Share Posted April 15, 2009 Please excuse my english. I think I have expressed myself wrong. I want to automate the positioning of the crop window. That was the idea at least. A friend sent me a another possibility shown pictures of crop. This works for me, see picture. With this tool i can trim and scale, exactly. I know of Scriptlab, unfortunately this feature is not included. Then it would be perfect 8) . greetz yob. Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted April 15, 2009 Share Posted April 15, 2009 Thats the canvas resize. This link has more on it: http://www.getpaint.net/doc/latest/en/ImageMenu.html This will achieve (in a slightly different way) the idea I first explained. However, you will need to "Save as..," to keep the original file untouched as "Save" would overwrite the original. Scriptlab: As a plugin (an add on to expand PDN capabilities), Scriptlab needs to be downloaded and then *.dll placed in the Paint.NET/Effects folder. Reopen Paint.NET and it should appear in the Effects>Advanced menu. 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.