Jump to content

toe_head2001

Administrator
  • Posts

    5,016
  • Joined

  • Last visited

  • Days Won

    155

Everything posted by toe_head2001

  1. Classic means that Paint.NET was not installed from the Microsoft Store.
  2. Oh, I see. I misunderstood. 1) Start Paint.NET. 2) Open the Paint.NET Settings from the icon in the upper-right. 3) Select Diagnostics on the left panel. 4) The "Install type" is the third item down.
  3. Make sure you save your image in a format that supports transparency. The PNG format is recommended. I'm not sure that answers your question though. Your lack of punctuation and sentence structure makes it difficult to understand accurately. Are you even using Paint.NET? Or are you using Photoshop of photoahop?
  4. You'll need to install it from the Microsoft Store. https://support.microsoft.com/en-us/help/4479732/get-apps-from-microsoft-store-on-windows-10-pc
  5. Actually, for the HelpButton, you should just use the override, instead of assigning a method to the event. protected override void OnHelpButtonClicked(CancelEventArgs e) { e.Cancel = true; base.OnHelpButtonClicked(e); Services.GetService<IShellService>().LaunchUrl(null, "https://www.getpaint.net/redirect/plugins.html"); } And do the same for any other Events on the Form.
  6. Sorry, no. Plugins aren't able to manipulate selection regions.
  7. Looks pretty good now, but I have a few suggestions: - Set the maximum height of the dialog to a much lower value. - The plugin output should either: make the entire canvas transparent, or the equation should be blended onto the source Surface. - For the "More plugins" link, you should use the IShellService.LaunchUrl() method since it does error/exception handling for you. And don't forget the 's' in https:// Services.GetService<IShellService>().LaunchUrl(null, "https://www.getpaint.net/redirect/plugins.html"); - Don't forget to set the Cancel property in CancelEventArgs: private void MathLaTexConfigDialog_HelpButtonClicked(object sender, CancelEventArgs e) { e.Cancel = true; MessageBox.Show("Bla Bla Bla"); } - Each time you set a new value for your Bitmap, be sure to dispose the old value. Garbage Collection in .NET is pretty good these days, but exercising "best practices" is still better. myBitmap?.Dispose(); myBitmap = new Bitamp(newValue)
  8. I just looked at that code the other day, and know exactly where the bug is. Fixing...
  9. Here's a screenshot showing Type Definitions: You can still look up Definitions on docs.microsoft.com, but you'll have to open the context menu:
  10. Yup, that example code also has the same two issues I pointed out. @Illnab1024 wrote that code a very long time ago; before IClipboardService and OnSetRenderInfo() existed in Paint.NET.
  11. This code has two issues: - After _img is successfully set, it never gets invalidated (set to null), so GetImageFromFile() will never run more than once. - Conversely, if an image file is not successfully loaded into _img, GetImageFromFile() will run on every single pixel, and fail over and over again. A serious performance issue. Did you find this code somewhere on the forum? If so, it needs to dealt with. It's bad code, and shouldn't be used. I would just recommend doing this stuff in PreRender().
  12. Please don't reply to these old forum topics; especially if your comment isn't directly related. https://forums.getpaint.net/topic/2932-read-first-the-rules/#11 Locked.
  13. https://www.getpaint.net/doc/latest/ImageMenu.html#5
  14. Yeah, pretty much. I believe so. If pixels outside of the selection are modified, that would be considered a bug. Yes, it will work. Using the ROI is, of course, the recommended route, and probably the most efficient.
  15. That was fixed in paint.net 4.1.6. Obviously, writing outside of the selection is still a bad practice, and just wastes compute resources.
  16. Sorry, plugins can't create/modify selections.
  17. Sure, you can turn off anti-aliasing. The option is in the toolbar. You should use Layers instead though.
  18. 1) Needs some Dark Theme lovin' https://forums.getpaint.net/topic/112962-guide-dark-theme-support-for-custom-effectconfigdialog/ 2) The 'X' needs to capitalized. LaTeX 3) You're still generating the image in the UI class. It's usually better to do that kind of thing in OnSetRenderInfo()
  19. Can you go into the file's Properties, and make sure the file permissions are normal?
  20. The templates are up on the Marketplace: https://marketplace.visualstudio.com/items?itemName=toehead2001.PdnVsTemples
  21. It would be useful if 'Open Containing Folder' selected the specific file in Explorer.
  22. Indeed. When I asked you to elaborate, I was not being sarcastic.
  23. That sounds interesting. Can you elaborate on that idea?
  24. That will work, but that's the old school way of doing it. These days, CodeLab can use enums, so you don't have to deal with byte values and casting. #region UICode ListBoxControl<CurveTypes> curveType = CurveTypes.Bezier; // Type of Curve|Bezier|Closed Bezier|Curve|Closed Curve|Straight Lines|Closed Straight Lines #endregion enum CurveTypes { Bezier, ClosedBezier, Curve, ClosedCurve, StraightLines, ClosedStraightLines }
×
×
  • Create New...