ShayEr Posted February 9, 2007 Share Posted February 9, 2007 (edited) MODERATORS NOTE: This effect is incompatible with Paint.NET 4.x. Hi, This is an old school image-to-code addin for Paint.NET 3.0, it will take an image and will convert it to code. From there you can compile the image into your code as data. Currently only C/C++ is supported and not all the formats are tested. In order to install it copy the dll into %ProgramFiles%\Paint.NET\FileTypes Cheers. Edited February 28, 2019 by toe_head2001 Quote Link to comment Share on other sites More sharing options...
barkbark00 Posted February 9, 2007 Share Posted February 9, 2007 Is there any way to add the option to recompile the code as an image? BTW...This is pretty cool! Quote Take responsibility for your own intelligence. 😉 -Rick Brewster Link to comment Share on other sites More sharing options...
MadJik Posted February 9, 2007 Share Posted February 9, 2007 How does it work? What is the size limitation of the picture? What could we do with the code? Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal Link to comment Share on other sites More sharing options...
barkbark00 Posted February 9, 2007 Share Posted February 9, 2007 I just tried it. Works pretty good. Would you be able to make it so you could use this to output a PDN Palette file? I have no programing experiance. That said, could you calculate the 96 most used colors in an image and then output them in HEX order to a .txt file? Quote Take responsibility for your own intelligence. 😉 -Rick Brewster Link to comment Share on other sites More sharing options...
ShayEr Posted February 10, 2007 Author Share Posted February 10, 2007 How does it work? It will just take the image and convert it to a C/C++ data structure. What is the size limitation of the picture? No size limitation, it will output array as big as you image. What could we do with the code? You can take the data structure as use it in your code, today most ppl can use resources to achieve that, but under some circumstances (embedded device for example) you can't and your only way to store gfx is using your code data segment. Quote Link to comment Share on other sites More sharing options...
ShayEr Posted February 10, 2007 Author Share Posted February 10, 2007 Is there any way to add the option to recompile the code as an image?BTW...This is pretty cool! Sounds cool to implement, but currently this is a one way tool. Quote Link to comment Share on other sites More sharing options...
ShayEr Posted February 10, 2007 Author Share Posted February 10, 2007 I just tried it. Works pretty good. Would you be able to make it so you could use this to output a PDN Palette file? I have no programing experiance. That said, could you calculate the 96 most used colors in an image and then output them in HEX order to a .txt file? a. Palette has 256 color not 96. b. In the near future I will add support for 8 bit palettized images. Quote Link to comment Share on other sites More sharing options...
MadJik Posted February 10, 2007 Share Posted February 10, 2007 Fine... It should be ok as well for C#. Could you provide a short code example (C/C++)? Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal Link to comment Share on other sites More sharing options...
BoltBait Posted February 11, 2007 Share Posted February 11, 2007 I just tried it. Works pretty good. Would you be able to make it so you could use this to output a PDN Palette file? I have no programing experiance. That said, could you calculate the 96 most used colors in an image and then output them in HEX order to a .txt file? a. Palette has 256 color not 96. b. In the near future I will add support for 8 bit palettized images. ShayEr, that may be true, but a Paint.NET palette file only contains room for 96 colors. Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
FriendlyFire Posted April 25, 2012 Share Posted April 25, 2012 Anyone going to build on this great work? Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted April 26, 2012 Share Posted April 26, 2012 And do what exactly 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...
FriendlyFire Posted April 26, 2012 Share Posted April 26, 2012 And do what exactly Namely allow for text to be turned back into the image. Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted April 26, 2012 Share Posted April 26, 2012 (..) it will take an image and will convert it to code. From there you can compile the image into your code as data. It seems to do just what was promised. Surely it is the job of your code to manipulate and interpret the data structure, and not a Paint.NET plugin? 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...
Rick Brewster Posted April 26, 2012 Share Posted April 26, 2012 Namely allow for text to be turned back into the image. You can already do that. Just add a block of code to save the image and run the modified program ... ? 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...
sradforth Posted August 8, 2012 Share Posted August 8, 2012 Have been thinking about paint.net needed one of these!! Absolutely perfect, great work! Quote Link to comment Share on other sites More sharing options...
Makuna Posted April 13, 2016 Share Posted April 13, 2016 Doesn't work with 4.0; any chance it can be updated? Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted April 13, 2016 Share Posted April 13, 2016 (edited) Doesn't work with 4.0; any chance it can be updated? This plugin is looking for PdnLib.dll, which hasn't been part of paint.net for ages. If I remember correctly, PdnLib.dll became PaintDotNet.Core.dll. In paint.net v4, the aliasing of PdnLib.dll to PaintDotNet.Core.dll was removed, thus breaking compatibility with old plugins like this ones. So possibly, the only change required to make the plugin compatible, would be to swap out that assembly reference. You could send an email directly to @ShayEr, and ask him to make that change. He provided his email address in the ReadMe.txt file. Edit: Sorry, incorrect info. Edited April 13, 2016 by toe_head2001 Quote (September 25th, 2023) Sorry about any broken images in my posts. I am aware of the issue. My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
Rick Brewster Posted April 13, 2016 Share Posted April 13, 2016 The PdnLib.dll -> PDN.Core.dll redirection is still there in the latest build. I haven't removed it. You say "it doesn't work" but haven't provided any further details ... 1 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...
toe_head2001 Posted April 13, 2016 Share Posted April 13, 2016 The PdnLib.dll -> PDN.Core.dll redirection is still there in the latest build. I haven't removed it. Oh, my mistake. My faulty memory I guess. My assumption was obviously wrong then, and the issue lies somewhere else. Quote (September 25th, 2023) Sorry about any broken images in my posts. I am aware of the issue. My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
Badda Posted February 27, 2019 Share Posted February 27, 2019 After installing the plugin (copying the .dll to %ProgramFiles%\Paint.NET\FileTypes), the new file type is not showing up in the "Save As"-Dialog. What am I doing wrong? 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.