Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by Illnab1024

  1. Sparked from this and a bit of boredom, I took my first dive into antialiasing. Here's the code, comments are few and far between so if you read this ask and I'll clarify. The algorithm sucks. Why? GDI+ renders the whole string at size*16 onto our surface and completely ignores boundary clipping until it actually goes to write the data, meaning in this case it would be much more resource-efficient (although a memory hog) to make one huge surface for it and sample from that. But this is designed around the assumption that I could find a rendering library that doesn't suck. Anything blatantly obvious to you, point it out. This is more a coding exercise than anything to me--the results aren't worth publishing as it doesn't implement font hinting whatsoever. (Mainly 'cause I can't access those details through GDI+ anyway.) HQFont.zip
  2. The have access to a "destination surface" that gets transposed to the current layer's data, and they have access to most if not all (?) of the C# .NET system functions. There have been several plugins that actually use GDI to draw things to the canvas, such as boltbait's polygon/stars plugin. Out of boredom, I'm working on a plugin that does font rendering, except with more awesome sampling! On-topic: Yes, it's definitely possible
  3. Correct. If you really want ClearType/FreeType rendering, I suggest a plug-in to do so. I highly doubt it ever being built into Paint.NET...
  4. Rendering to subpixels is not advised at all for graphics processing -- it creates an image that when printed to a medium or scaled to a higher or lower resolution has those subpixel colors visible: i.e. it is only meant for LCD or CRT media which actually have subpixels.
  5. Sorry, I was tired -- better word choice would have been "The Effects API isn't entirely stupid."
  6. Just use csc with the optimize code option... or optimize code in visual studio project properties. It does all this. Also, I believe the Effects API in Paint.NET does some refactoring.
  7. Sorry bout that.. file's there now. Had essays to write. Still have essays to write. Hooray for midterm period. Also, a word to the wise, if you get stuck looking for the bug, just send a message in all caps to someone random. It helps me all the time.
  8. ^Many thanks! ... Except it's not done yet. License revoked!
  9. Even better, no option.. updated. I'll give the option in 1.1. I've got to get the threading stuff fixed first. Edit: Err, 1.2. Forgot about it and I don't think anyone cares about something that can be fixed by control-z.
  10. From BoltBait's idea and Illnab's apparently limitless time, we bring you yet another awesome effect plug-in: Google Image Search Plugin GoogleImageSearchEffect.zip (Render > Google Image Search...) This plugin allows you to use Google Image Search directly in Paint.NET and avoid the hassle that is copying and pasting, or in some cases with Mozilla especially saving to file and importing to a layer (i.e., transparency). Type a search term in the search box (top right), hit Enter or press Search, and double click the image of your choice to render it on to the current layer. Make sure before using the effect to create a new empty layer. Change log: Version 1.1 -- [*:13lyrh5c]Fixed threading issues. [*:13lyrh5c]Fixed the numeric up/down control. [*:13lyrh5c]Added automatic resizing if the image selected is larger than the selection. [*:13lyrh5c]Added tooltips with URL and image type. [*:13lyrh5c]Added ability to copy an image URL by right-clicking. [*:13lyrh5c]Made source public. [*:13lyrh5c]Added licensing info. ~Illnab1024 Licensing information, only important if you plan on redistributing this in any way whatsoever: (modified MIT license) Hidden Content: Copyright © 2009 Robert NixPortions copyright © 2009 dotPdN LLC Portions copyright © 2009 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: Use of this source code or any derivative works (excluding portions not marked with this license) is only permitted with permission of the author. In any publishing of this software or a derivative work, the URL or text of this software's original copy must be given, which can be found at: viewtopic.php?f=16&t=31960 . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Certain portions of this code are licensed under the Code Project Open License, a copy of which may be found here. Source code: GoogleImageSearchEffect_Source.rar Also, if it crashes Paint.NET, tell me, not Rick, okay? A bit of credit/technical stuff: CodeProject.org for a few functions and the Google Image Search interface, A 70-mile car ride for a coding revelation, And last but not least, your friendly neighborhood Admin, BoltBait, who gave me this horror of an idea. Current 1.2 plans: Detection of opacity, download progress indicator, option on thumbnail return. Not anytime soon unless some big fat bug comes up. On a side note, the current timeout is 10 seconds. If anyone here has a ridiculously unreliable connection I can go ahead and change that for you. Don't pull out your internet connection while using this. It shouldn't crash, but just... don't do it. I know you're tempted, pyro. Google Cease & Desists can go to .
  11. And what version Paint.NET are you using? | V
  12. First things first, have you restarted Paint.NET after installing the plugin? Also, here are the steps to unblock DLLs: link
  13. With the Displacement On? checkbox checked, it acts like a displacement filter; without, it acts like an alpha masking filter. That is, to use it like my original plugin, just leave that box unchecked and import a file. Also, Bleek, I suggest having a catch (System.IO.FileNotFound) in the try...catch of the EffectConfigToken.GetImage() if you do update it again. And have the return fallback be an embedded single white pixel instead of null... it tries to read from file for every single pixel if you don't. If you're still around.
  14. Both. I'd say the best experience you ever get with a new tool is when you really need it, though. So whenever you find something that could be done in Paint.NET, do it! When you do it like that, you get better gradually, get time to let newly learned concepts sink in, and all those hours you spend with the program don't seem like much at all. While you're here, do follow the forum rules and make sure your post titles aren't something terribly vague.
  15. ^ knows that AP Calc. is easy-sauce. < has procrastinated studies for AP US History for weeks now, and has used that time to learn Assembly, a decision he has come to regret. V will hopefully not make fun of my now dead brain.
  16. [B+] Three Word Game [A+] Ask a n00b question, receive a n00b answer [A+] Ctrl+V Game [A+] Rate the Sig/ Rate the Avatar of the poster above you [A+] The Alphabet Game [A+] Rate the User name of the Person above you For sucking so horribly. Edit: Start with a C+, not an A+. . . We have to hurt for atleast a couple turns if not
  17. Added version 1.1; This does some long-needed submenu moves for my plugins.
  18. WoW Armory Haven't been playing too much of late.
  • Create New...