Jump to content

BoltBait

Administrator
  • Posts

    15,730
  • Joined

  • Last visited

  • Days Won

    405

Everything posted by BoltBait

  1. Please be sure you're pressing the Delete key and not the Backspace key. They are 2 different functions. Sometimes people make that mistake. If that's not it... are you running Windows in English or another language?
  2. CodeLab 6.1 Released This is only for Paint.NET 4.2.16+! Long awaited update today... Changes: ▪ Use Roslyn syntax in generated code (BoltBait) ▪ Fix the disablement of the Transparency menu (toe_head2001) ▪ Disable intelligent assistance when document is readonly (toe_head2001) ▪ Fix issue with square brackets in controls' Display Name (toe_head2001) ▪ Add SubmenuNames.Color which is new in PdN 4.2.16 (BoltBait) ▪ Copy Text and RTF formats onto the clipboard (Handy when pasting syntax highlighted code into Word) (toe_head2001 and BoltBait) ▪ Fix compilation with PDN v4.2.16 (toe_head2001) ▪ Fix Clouds rendering for Paint.NET v4.2.16 (BoltBait) ▪ Fix URLs for Errors and Warnings (toe_head2001) ▪ Minor code refactoring and bug fixes (toe_head2001 and BoltBait) Grab the CodeLab DLL here: https://www.boltbait.com/pdn/CodeLab/
  3. I didn't know that could be done in an IndirectUI plugin. It can't. Export to a Visual Studio project and add your additional rules there. It's a piece of cake.
  4. Man, you gotta be quick around here... #bestusergroupever
  5. Click on the settings icon in the upper right corner of the UI (), then click on the Tools tab and set your defaults there:
  6. I find the best way to add color is to add a new layer, change the layer’s blend mode to multiply, then paint your color onto that new layer.
  7. You need to do some Windows Updates until your version is above 1607.
  8. That's probably fine for your own plugin. Something to remember: Be sure to use the following option comment: // Force Aliased Selection Otherwise, when copying the pixels from the source canvas to the dest canvas you might get anti-aliasing if your selection is round. It's easy to forget if you always test your plugin with a square (or no) selection.
  9. That's fine for a button. Just be aware that the PreRender() code doesn't always run... What?! Yup. If there are no UI changes between the initial run and when you press the OK button, only Render() gets called. This usually isn't a problem unless you use Ctrl-F to repeat an effect. In that case, PreRender() doesn't get called but Render() does.
  10. Here's some code to get you started: // Name: Button example // Author: BoltBait // Force Aliased Selection // Force Single Threaded #region UICode ReseedButtonControl Amount1 = 0; // Do it! #endregion int MyButton = 0; // initialize to -1 instead if you want to trigger when effect is run void Render(Surface dst, Surface src, Rectangle rect) { if (Amount1 != MyButton) { // Replace this block of code with your code: Form IndirectUIForm = Form.ActiveForm; if (IndirectUIForm != null) { IndirectUIForm.Invoke(new Action(delegate () { // This code runs on the UI thread: MessageBox.Show("Button pressed."); })); } // End of block MyButton = Amount1; } // Copy the src surface to the dst surface dst.CopySurface(src, rect.Location, rect); }
  11. Yes it is. Nope. Your best bet might be to include a button on your UI and then when the button is pressed, in the Render loop, check to see when x==0 and y==0 and put your value on the clipboard at that time.
  12. So long as the graphic is family-friendly. Yes, this is allowed.
  13. If you can select the object, try: Effects > Selection > Blur selection edge
  14. This thread is starting to smell a lot like spam.
  15. Literally no one. This message board is about the raster graphics editor called Paint.NET and not about physical painting of any sort (including using "diamonds").
  16. What everyone is trying to say is this: When pasting your transparent image into your existing image, use Ctrl-Shift-V instead of simply Ctrl-V
  17. Yes, that's exactly right... because Paint.NET is a raster image editor and not a vector image editor. If you want to save a vector image in a vector format, you should use a vector editor, like InkScape.
  18. The docker windows (tools, colors, history, and layers) can not be closed with the "X" button if no image is open:
  19. Hue / Saturation doesn't work with black and white images. First you need to add a little color. Take your image and run Adjustments > Sepia THEN you can run Hue / Saturation
×
×
  • Create New...