Jump to content

BoltBait

Administrator
  • Posts

    15,728
  • Joined

  • Last visited

  • Days Won

    405

Everything posted by BoltBait

  1. Why "make" them when you can just "copy-and-paste"?
  2. I refunded your second donation. Feel free to pass it along to someone else. There are a lot of deserving plugin authors around here. Also, thanks for the first donation! I really appreciate it.
  3. href="/monthly_11_2015/post-44727-0-03640200-1448264887.gif">
  4. Select "All files" then change the ".txt" to ".xaml" and you're all set.
  5. Please tell us what you are trying to accomplish with your plugin so we will know how to fix your algorithm.
  6. Whenever you override a base class function, it is a good idea to call the origional function you are overriding. That way, whatever your code is doing will be in addition to what was designed in the base class. I'm not exactly sure what the base class is doing here, it could be nothing.
  7. All of my shapes were specifically designed to work as an Outline and as a Filled Outline. I gave almost no consideration to how the shapes would look as only Filled.
  8. What was the purpose of showing my shape in the graphic? Are my shapes not working the way you'd expect?
  9. Try clicking this button. Hope this helps. More info here: http://forums.getpaint.net/index.php?/topic/31884-restoring-lost-windows/ ____________
  10. Wow, dpy! I'm impressed. You really have some paint.net skillz:

  11. Currently, paint.net has two color schemes: I do not believe there are any immediate plans to add additional themes.
  12. Help is launched by pressing the F1 key. Perhaps you are "fat fingering" the F1 key when you are trying to press the 1 or 2 key.
  13. ScrapbookWithPDN, for more on the differences between the two formats, read this thread: http://forums.getpaint.net/index.php?/topic/32101-h
  14. Just double-click on the Install_Sponge batch file and it will install the dll for you.
  15. I can't believe I missed this: I think the root of the problem is this: You purchased a High-DPI laptop not knowing what "High-DPI" means... and... you don't like it. Bottom line: paint.net is working perfectly and so is your laptop. You just don't like the way it works. My advice: next time, try out the laptop in the store before you buy it.
  16. Before adjusting the slider (described in my last post), be sure this is OFF:
  17. sabert80, perhaps you only need to adjust this slider:
  18. Make sure you are caught up with all your windows updates.
  19. When you select the recolor tool, look at the toolbar: You need to select the secondary color option and adjust your tolerance up until you get the desired results.
  20. CodeLab 2.9 Released This is only for Paint.NET 4.0.6+! Changes: ▪ Fixed a bug in the help system that was causing plugins that contained help to fail to build. (Bug reported by MJW) Grab the CodeLab DLL here: http://www.boltbait.com/pdn/CodeLab/
  21. It is probably Windows doing a Windows Update. Try again later.
  22. Here is a CodeLab script to do it: // Title: BoltBait's Render Text Sample // Author: BoltBait // Submenu: Render // Name: Text // URL: http://www.BoltBait.com/pdn #region UICode MultiLineTextboxControl Amount1 = ""; // [1,32767] Text FontFamily Amount2 = new FontFamily("Arial"); // Font IntSliderControl Amount3 = 12; // [10,72] Size RadioButtonControl Amount4 = 0; // [1] Smoothing|None|Anti-Alias|ClearType ColorWheelControl Amount5 = ColorBgra.FromBgr(0,0,0); // Color PanSliderControl Amount6 = Pair.Create( 0.0 , 0.0 ); // Location #endregion void Render(Surface dst, Surface src, Rectangle rect) { Rectangle selection = EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt(); // Reset the destination canvas dst.CopySurface(src,rect.Location,rect); // Determine where the text will be written int column = (int)Math.Round(((Amount6.First + 1) / 2) * (selection.Right - selection.Left)); int row = (int)Math.Round(((Amount6.Second + 1) / 2) * (selection.Bottom - selection.Top)); // Create a brush and graphics surface to write on SolidBrush Brush1 = new SolidBrush(Amount5.ToColor()); Graphics g = new RenderArgs(dst).Graphics; // specify smoothing mode switch (Amount4) { case 0: // none g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.SingleBitPerPixelGridFit; break; case 1: // anti-alias g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit; break; case 2: // cleartype g.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; break; } // Be sure to clip to our ROI g.Clip = new Region(rect); // Create a font from user selection Font SelectedFont; try { SelectedFont = new Font(Amount2.Name, Amount3); } catch { // If font creation fails, use Arial font SelectedFont = new Font("Arial", Amount3); } // Write our text to the canvas g.DrawString(Amount1, SelectedFont, Brush1, column, row); }
×
×
  • Create New...