Jump to content

BoltBait

Administrator
  • Posts

    15,728
  • Joined

  • Last visited

  • Days Won

    405

Everything posted by BoltBait

  1. Picc84, it seems to me that the request you made is easy to just do by hand--no need for a script for that one. Why not ask for something a little more difficult... Folded corners are a snap. Page curls are where the big money's at.
  2. It is not possible. Paint.net is a bitmap editor, not a vector drawing program.
  3. Although interesting, the current selection method is already more flexible than what he proposes. As I said before, please read these pages: http://www.getpaint.net/doc/3.0/en/MoveTools.html http://www.getpaint.net/doc/3.0/en/SelectionTools.html
  4. The words you use are English, but my brain is not putting them together in an understandable way. Sorry.
  5. I'm not exactly sure what you're asking, but read these two web pages to see if they answer your question: http://www.getpaint.net/doc/3.0/en/MoveTools.html http://www.getpaint.net/doc/3.0/en/SelectionTools.html
  6. Pencils and paper. Heh. Not to worry, I'm sure Rick wouldn't leave us with nothing to use. After the beta cycle, there is usually Release Candidate builds...
  7. Nice! Thanks! It is working well. I will add the links to the first post. By the way, I'm not sure what that icon is, but I like it.
  8. Well, I'll take a look at it when I get a chance. Maybe tomorrow. You know you can download Visual Studio for free... http://msdn.microsoft.com/vstudio/express/visualcsharp/
  9. After writing 11 effects... ya think? Rick, Its all a matter of TIME, not ability. Besides, everybody knows the UI is the hardest part...
  10. It is true, I like his work... but, where is he? MadJik also does fine work. I may just do this one myself when I find the time. I have upgraded my dev enviroment to VS2005. So, its just a matter of time before I get off my lazy butt and do one for myself.
  11. Color Balance Whenever I take pictures indoors, the pictures always come out looking yellow. So, I needed a color correcting effect. I wanted to create something that would be MUCH easier than fiddling with the RGB levels adjustment that is already included in Paint.NET. The Idea I wanted to make an effect that would make my pictures less yellow. Well, if they are going to be less yellow they will have to be more... what? Blue? Yup. That's the opposite of yellow. Perfect! I figured a slider between yellow and blue would do the trick. And, while I'm at it, I might as well add a slider between Cyan and Red and a slider between Magenta and Green. (Not that I'll ever need those, but, what the hay!) Opposites Yellow is opposite of blue? Sure. Let's take a look at the color wheel: Basically, the arrows shown in this illustration are the sliders in the Color correction effect. In the RGB color model, Yellow is a combination of Red and Green. So, in the code, when we increase the level of Blue in our image, we decrease the levels of Red and Green (each by half of the Blue adjustment). If you notice, we have each of the primary colors on one end of the sliders and the combination of the remaining primary colors (called secondary colors) on the other end. The Effect DLL If you like it, you can download the precompiled effect here: BoltBait's Plugin Pack How to Use Typically, this effect is used to correct the colors of a photograph. Notice in the illustration of the color wheel above, all 3 arrows cross at white. The best way to adjust a photograph's colors is to look at the white areas of the photograph and try to adjust the sliders until you achieve a true white in those areas. For example, many times when taking photographs indoors, white walls will appear slightly yellow. Simply move the Yellow/Blue slider to the right until the walls appear white. Then adjust the other sliders to fine tune the resulting shade of white. It may take some tinkering with the sliders to get something close to a true white. Then, once you get the colors right, it may be necessary to adjust the brightness and contrast. By the way, this is a great way to "whiten" teeth, too. Waaaay easier than brushing. Tinting Another use of this effect is to tint images. First, change the image to Black and White (desaturate the image). Then run the effect and adjust the sliders for the desired coloring. As an example, you can make an image appear Sepia by making the image Black and White, then running the Color Balance effect and setting the sliders to 100, 85, and 75. Source Code The codelab script is fairly straight forward: void Render(Surface dst, Surface src, Rectangle rect) { int CyanRed = 0; // Slider, Range -100 to 100, default 0 int MagentaGreen = 0; // Slider, Range -100 to 100, default 0 int YellowBlue = 0; // Slider, Range -100 to 100, default 0 int r, g, b; PdnRegion selectionRegion = EnvironmentParameters.GetSelection(src.Bounds); Rectangle selection = this.EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt(); for(int y = rect.Top; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) { if (selectionRegion.IsVisible(x, y)) { r = (int)src[x,y].R; g = (int)src[x,y].G; b = (int)src[x,y].B; // Cyan-Red adjustment r += CyanRed; g -= (CyanRed / 2); b -= (CyanRed / 2); // Magenta-Green adjustment r -= (MagentaGreen / 2); g += MagentaGreen; b -= (MagentaGreen / 2); // Yellow-Blue adjustment r -= (YellowBlue / 2); g -= (YellowBlue / 2); b += YellowBlue; dst[x, y] = ColorBgra.FromBgra( Utility.ClampToByte(b), Utility.ClampToByte(g), Utility.ClampToByte(r), src[x,y].A); } } } } Enjoy.
  12. Try saving the picture as .JPG (which compresses pretty well.) With JPG, you can adjust the quality of the output which, in turn, adjusts the file size.
  13. Congratulations, you have discovered exactly how graphics work on the PC.
  14. Just click the link that says "Watch this topic for replies". That should do it.
  15. Well, for using Paint.net, yeah, you're pretty much stuck with using a gif animator (unFREEz, etc). You could try other programs that are designed for creating animations, such as Flash. Good luck!
  16. Buzz, one eye is blue and the other is green. Dude! That's freaking me out.
  17. I was going to say the same thing. That's not bad at all. Of course, having PdN minimized makes it a little hard to manipulate images.
  18. Thanks. Yeah, this is one way to do it. I'm big on using Google Image Search to find pieces to work with rather than trying to make them from scratch--especially when talking about natural/random patterns.
  19. Find a picture of stucco... Adjust the colors until it is red? Then, apply a gradient to get the black-to-red effect.
  20. Like this: http://paintdotnet.12.forumer.com/viewtopic.php?t=1411
  21. Basically, this will tile an image from a file into the selction on a layer (or to the whole layer, if there is no selection). It just repeats the picture (usually a small one like a couple of bricks) into your selection (like a wall you have selected). If the texture is a nice repeating one, this would give the illusion that a brick wall existed where a stucco wall was before.
  22. Like this: http://paintdotnet.12.forumer.com/viewtopic.php?t=3044
  23. All layers must be the same size. Perhaps you would like to resize the image on a layer? If so, select your layer and press Ctrl-A to select all. Then, using the "Move selected pixels tool", hold the shift key as you click-and-drag one of the corner nubs of the selection.
×
×
  • Create New...