wasyl Posted March 19, 2015 Share Posted March 19, 2015 (edited) Hi Can't find any info on how to write a filetype plugin for Paint.net. I have found only visual studio template at:http://forums.getpaint.net/index.php?/topic/7984-filetype-plugin-template-v20/page_p_121651entry121651 and small description at codeproject, but I don't understand all of the parameters of OnSave event handler, what is PaintDotNet.Surface and how to work with data stored there Thanks, Edited March 19, 2015 by wasyl Quote Link to comment Share on other sites More sharing options...
Pixey Posted March 19, 2015 Share Posted March 19, 2015 Hi Wasyl and Welcome to the Forum. Here is a Search Link when you need to look for subjects of interest about Paint.net. And here are some threads on the subject you mentioned One and Two. 2 Quote How I made Jennifer & Halle in Paint.net My Gallery | My Deviant Art "Rescuing one animal may not change the world, but for that animal their world is changed forever!" anon. Link to comment Share on other sites More sharing options...
Red ochre Posted March 19, 2015 Share Posted March 19, 2015 Hello wasyl - welcome to the forum! Ooops - I just linked to the template you found already . Quote Red ochre Plugin pack.............. Diabolical Drawings ................Real Paintings Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted March 19, 2015 Share Posted March 19, 2015 I think you might find this template easier to use: http://forums.getpaint.net/index.php?/topic/26034-propertybasedfiletype-template-using-indirectui/ The UI is mostly created for you. All you need to do is populate it with any option controls that you might need. The save process is that paint.net gives you a Stream to save to. It handles all the file selection dialog stuff for you. All you need to do is to manipulate the data and feed it to the stream. I said "All you need to do" but it's obviously serious stuff if you're not familiar with C#. What format of filetype are you trying to create? Are you supporting both loading and saving? What level of coding do you have? I'm asking this so we can talk at your level - not to discourage you. you might find this thread interesting: http://forums.getpaint.net/index.php?/topic/20538-ora-attempt/ It details the evolution of a filetype plugin. 2 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...
toe_head2001 Posted March 19, 2015 Share Posted March 19, 2015 In addition to what @Ego Eram Reputo said, I would suggest looking at the code for the OptiPNG plugin if you would like a functional example. That will probably at least answer some of your questions (I know it did for me). If you're looking for info about PaintDotNet.Surface, don't forget that you can open the PaintDotNet.Core.dll file in Visual Studio or Mono Develop and take a look at it. Unfortunately, there's really no official documentation of paint.net's internals. 2 Quote My Gallery | My Plugin Pack Layman's Guide to CodeLab 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.