Jump to content

BoltBait

Administrator
  • Posts

    15,646
  • Joined

  • Last visited

  • Days Won

    390

Everything posted by BoltBait

  1. Basically, you need to use the feather tool for that. And, if it's not working for you, you're probably not using it correctly. Also, I recommend reading the forum rules: viewtopic.php?f=20&t=3446
  2. Genius, stop digging up old threads... especially to add nothing to the discussion. Locked.
  3. miriam, what version of Paint.NET are you using? The reason I ask is because I've see this issue with older version and not 3.5.1
  4. Adjust the Alpha of the primary color to adjust the intensity of the clone stamp tool.
  5. You've downloaded an outdated plugin. Please redownload my plugins from here: viewtopic.php?f=16&t=22819 Also, in the future, if you're having trouble with a specific plugin, post in that plugin's thread in the plugin forum. This forum is for Paint.NET issues only. Closed.
  6. Give us examples. Just attach them to a message here on this forum.
  7. Working as designed. When drawing a transparent gradient, both primary and secondary alpha must be set to 255.
  8. Save the project in PDN format. That option is in the bottom of the "Save As" dialog box. You should save both versions: PDN for later editing and PNG (or other format) for publishing.
  9. I used your plugin in explaining how to turn someone into a golden statue: 5 easy steps 1. First, install the two plugin packs listed below. 2. Next, run Paint.NET and select the person. 3. Then, run the following Metalize plugin with the following settings: 0, 3 4. Finally, run the following Color Balance plugin with the following settings: 0, -16, -64 5. Send payment via PayPal If I haven't said it before, I love this plugin. Nice job.
  10. Try the Equations plugin in this pack: viewtopic.php?f=16&t=22521
  11. What error message do you receive? Is there a PDNCrash.log file on your desktop? If so, open it in notepad, copy its contents and paste them here.
  12. Not here. Here's a screenshot: viewtopic.php?p=181231#p181231 Enjoy.
  13. Yes. No. You can do this in a filetype plugin but not in an effect plugin. Rick is considering allowing us effect developers access to the other layers (and more really cool stuff) in a future version of the effect engine. But, it's still in the planning stages at this point, so don't hold your breath waiting for this.
  14. 5 easy steps: 1. First, install the two plugin packs listed below. 2. Next, run Paint.NET and select the person. 3. Then, run the following Metalize plugin: [/url] Metallize with the following settings: 0, 3 4. Finally, run the following Color Balance plugin: Color Balance with the following settings: 0, -16, -64 5. Send payment via PayPal
  15. pyrochild, that's a bit strong. My main point that I was trying to make (and I think I finally made it in my previous post) is that an algorithm is only as good as the use people get out of it. My issue was not that the code was bad, in fact the code he posted is quite good. My issue was that without anitaliasing and variable line width, no one's going to use it. He could spend the rest of his life optimizing that code to the point that it is the fastest line drawing code in the world... but it would just sit in a book somewhere because no one could find a use for it. I presented a different way to draw antialiased text and lines, and it is slower than his code. But, it is something that people can get some use out of. And, to me, that's more important than the few extra milliseconds I'll have to wait for my line to draw.
  16. I agree that your line drawing code is much better than my thin line drawing code (MUCH faster). But, my point is... there is not much call to draw aliased anything (lines or text). So, any useful code must include antialiased drawing. It doesn't matter how fast your code is, if no one's using it.
  17. I'd rather have good looking slow lines than ugly fast lines. Plus, using GDI+ you can change the width of the line (something you can not do). I think I'll stick to the other unless you can add antialising and variable line width.
  18. I find the following method much more conveinent for clipping to the current Rectangle of Interest (ROI): // Author: BoltBait // Name: Text // Submenu: Render // URL: http://www.boltbait.com/pdn/codelab/help/uielements.html #region UICode FontFamily Amount1 = new FontFamily("Arial"); // Font int Amount2 = 12; // [8,72] Font Size ColorBgra Amount3 = ColorBgra.FromBgr(0,0,0); // Font Color Pair Amount4 = Pair.Create( 0.0 , 0.0 ); // Text Location string Amount5 = "Paint.NET Rocks!"; // [0,255] Text #endregion void Render(Surface dst, Surface src, Rectangle rect) { Rectangle selection = EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt(); int width = selection.Right - selection.Left; int height = selection.Bottom - selection.Top; int column = (int)Math.Round((float)((Amount4.First + 1.0) / 2.0) * width); int row = (int)Math.Round((float)((Amount4.Second + 1.0) / 2.0) * height); // Reset the destination canvas dst.CopySurface(src,rect.Location,rect); // Create a brush and graphics surface to write on SolidBrush Brush1=new SolidBrush(Color.FromArgb(Amount3.A,Amount3.R,Amount3.G,Amount3.); Graphics g = new RenderArgs(dst).Graphics; g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; // Don't write outside of the current ROI g.Clip = new Region(rect); // Create a font from user selection Font SelectedFont=new Font(Amount1.Name, Amount2); // Write our text to the canvas g.DrawString(Amount5, SelectedFont, Brush1, column, row); } The benefit of this method is that is properly handles antialiased text EDIT: and lines. More examples here: http://www.boltbait.com/pdn/codelab/hel ... ments.html Hope this helps. EDIT: The example given above is for text. However, I just noticed that you were talking about drawing lines. Here is an example of using the same technique to draw lines: viewtopic.php?f=16&t=2580&p=16685#1 (Ignore everything in the first post, except the link to the VS2005 project source code.) This could be easily adapted to codelab by following my example above.
  19. By registering the plugin (i.e. sending that guy some money, he send you a code to unlock the plugin).
  20. If you really want to optimize your new computer for Paint.NET, I would recommend getting the 64 bit version of Windows and lots of memory. You will be able to edit much larger pictures with more layers, and it will run faster too.
  21. Read this: viewtopic.php?f=10&t=23939
  22. This typically happens when the edges of the object are already feathered. You would probably do better to use my Adjustment > Transparency plugin to adjust the object to full opacity. Then use the feather plugin.
  23. If you are using CodeLab to develop your effect, it includes built-in functionality for both Color Wheel controls and the currently selected primary/secondary color. Download CodeLab here: http://www.boltbait.com/pdn/codelab Code samples here: http://www.boltbait.com/pdn/codelab/hel ... ments.html
  24. Read this thread: viewtopic.php?f=16&t=2023
×
×
  • Create New...