jp2paint Posted October 9, 2012 Share Posted October 9, 2012 I did a search for API, and surprisingly nothing pulled up. Is there any way to use Paint.net in something like a C# winform or webform or is accessing the Graphics object directly just easier to do? Quote ~Joe Avoid Sears Home Improvement (click to read why) Link to comment Share on other sites More sharing options...
Rick Brewster Posted October 9, 2012 Share Posted October 9, 2012 No. Absolutely not. Paint.NET is only licensed for use as an application. Incorporating it into your own software in any form is not allowed for any reason. Did you seriously not even read the license? Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
jp2paint Posted October 9, 2012 Author Share Posted October 9, 2012 LOL. I'm sure I read every word of all those license agreements. So, since you are the one who knows, would this be because you don't want someone making a profit off of something you are giving away? I was thinking access to the API would open up new ways for me to incorporate a splash screen on my form or drawing up a sketch of one of our products from the AutoCad drawing. But, if it is an Absolutely Not - then I understand why I haven't found any info on it. Don't worry - I won't try if I'm not supposed to. I'm a Developer, too. Quote ~Joe Avoid Sears Home Improvement (click to read why) Link to comment Share on other sites More sharing options...
Rick Brewster Posted October 9, 2012 Share Posted October 9, 2012 No, sorry. Paint.NET isn't an imaging or rendering API. It's narrowly licensed for use as an application. If you want to know the history of my thoughts on this, check out my blog or just search for "backspaceware". For every story I tell on my blog there are 10 other cases of companies just outright stealing and reusing stuff with no regard for myself or the Paint.NET user base. There were some ripoffs that would uninstall Paint.NET as part of their install because they were too lazy/stupid to change the MSI product GUID. Their "send feedback" link in the Help menu would send e-mail to ME about THEIR bugs! etc. etc. etc. Here's a fun read about "Michael J. Hardy" (I commented on part 10 and 11 IIRC), http://youfailit.net/?p=49 . I had one poor guy e-mail me asking why I'd renamed Paint.NET and removed features ... nope, it was one of Michael J. Hardy's scams. Another story, http://blog.getpaint.net/2012/04/05/myspace-music-has-questionable-ethics/ . This is just the surface. Please don't think I'm singling you out on this. If you're developing for Windows I recommend you look at Windows Imaging Component (WIC), which is available for XP and up. Search MSDN for IWICImagingFactory and go from there. That gets you "imaging" (loading/saving images, bitmap manipulation, some other stuff). For rendering I recommend using Direct2D and DirectWrite, which require Vista SP2. If you're on XP you might just use GDI+, which covers everything that is now accomplished with WIC, Direct2D, and DirectWrite. GDI+ is a horrible bug farm, although it works just fine for "UI rendering" (buttons, images, gradients, simple 2D stuff). Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
jp2paint Posted October 9, 2012 Author Share Posted October 9, 2012 LOL - Enough said. I know I shouldn't laugh, but... I guess I've found myself in similar situations and (at least in my mind) I am typically the one on the bad end of the stick. Quote ~Joe Avoid Sears Home Improvement (click to read why) 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.