-
Posts
15,730 -
Joined
-
Last visited
-
Days Won
405
Everything posted by BoltBait
-
I have a question.
BoltBait replied to eeeeeeeeeeeeeeeeeeeee's topic in Troubleshooting & Bug Reports
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? -
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/
-
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.
-
Try Ctrl-Shift-F7
-
Everything defaults to Backward Diagonal
BoltBait replied to bobs edles ross's topic in Paint.NET Discussion and Questions
Man, you gotta be quick around here... #bestusergroupever -
Everything defaults to Backward Diagonal
BoltBait replied to bobs edles ross's topic in Paint.NET Discussion and Questions
Click on the settings icon in the upper right corner of the UI (), then click on the Tools tab and set your defaults there: -
Can I create plugins that add new panels?
BoltBait replied to jmk's topic in Plugin Developer's Central
No. -
-
Do something once, when exiting plugin?
BoltBait replied to MJW's topic in Plugin Developer's Central
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. -
Do something once, when exiting plugin?
BoltBait replied to MJW's topic in Plugin Developer's Central
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. -
Do something once, when exiting plugin?
BoltBait replied to MJW's topic in Plugin Developer's Central
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); } -
Do something once, when exiting plugin?
BoltBait replied to MJW's topic in Plugin Developer's Central
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. -
newbie with a graphic
BoltBait replied to eager to learn's topic in Paint.NET Discussion and Questions
So long as the graphic is family-friendly. Yes, this is allowed. -
This thread is starting to smell a lot like spam.
-
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").
-
The docker windows (tools, colors, history, and layers) can not be closed with the "X" button if no image is open: