-
Posts
5,019 -
Joined
-
Last visited
-
Days Won
155
Everything posted by toe_head2001
-
Mixing VS Designer controls with IndirectUI
toe_head2001 replied to NinthDesertDude's topic in Plugin Developer's Central
I'll post the updated source of my Graph Paper later today. That will give you an example (not sure how good it really is though, enough to get it to work at least). -
Mixing VS Designer controls with IndirectUI
toe_head2001 replied to NinthDesertDude's topic in Plugin Developer's Central
You can't mix WinForm Controls with IndirectUI. midora has the OptionBasedEffects library. It will create a UI that's similar to InidrectUI, but it's much more flexible and also provides a lot more Controls. -
Plugin Request : Fast Radial Blur For PDN 4.0x
toe_head2001 replied to Nai's topic in Paint.NET Discussion and Questions
What does this plugin offer that is not in the built-in Radial Blur effect? -
Graph Paper v2.1 (Feb 1, 2018)
toe_head2001 replied to toe_head2001's topic in Plugins - Publishing ONLY!
Here's another testing build. I've made some changes to the UI. Please tell me what you think. Designing a good UI can be hard to get right. ---Download Removed--- Hidden Content: Screenshot -
Printing a resolution frame
toe_head2001 replied to nawavids's topic in Paint.NET Discussion and Questions
Just print a rectangle that has a 3:2 aspect ratio? Make sure you take DPI into account. http://forums.getpaint.net/index.php?/topic/17049-dpi-and-you-understanding-resolution-for-print-and-web/ -
curve/line tool not working
toe_head2001 replied to PandaInASuit's topic in Troubleshooting & Bug Reports
Well there you go, that's your problem. -
curve/line tool not working
toe_head2001 replied to PandaInASuit's topic in Troubleshooting & Bug Reports
That sounds like bug in an old version. Please confirm that you are using paint.net version 4.0.9. -
Inset Box Shadow v1.3 (Nov 3, 2018)
toe_head2001 replied to toe_head2001's topic in Plugins - Publishing ONLY!
Not necessarily. There's no reason why the Margin sliders couldn't have a negative value. UI size doesn't matter too much, but I do like to keep them short if I can. I'm more concerned with making UI as intuitive as possible. - To use a Offset/Pan control, it doesn't make sense to set a margin(s). It makes more sense to simply to set the Width and Height. It would automatically rendered to the exact center of the canvas/selection, and then you could move it around with the Offset/Pan control. I imagine this is what most people would want. - The other way is to set the four Margins individually to an exact amount. Personally, I like this method, because I'm a nerd that that. I will most likely go with the Offset/Pan route, but I need to think about the ramifications of each a little more before I decide. Considering we are only with one color at a time here, I think there are easier & less complicated ways to do it. Can you post an image of what that might look like? -
Inset Box Shadow v1.3 (Nov 3, 2018)
toe_head2001 replied to toe_head2001's topic in Plugins - Publishing ONLY!
Non-rectangular selections would require a rewrite of the plugin. That's not a big deal though; this plugin (or rather the actual algorithm of the plugin) is just a few lines of code. When I figure out a good way of doing non-rectangular selections, I'll release a version 2.0. As for the Offset, your bullet points do have merit. However it makes more sense, to me at least, to allow for each of the four margins to be set independently. (plus the code is already written in a way in which this can be done) Otherwise the whole concept of the Margin breaks down. For example, the Margin is set to 10px, but it's offset by 30px.... so that margin is 40px and that other one is....???? Would that work for you? Independent sliders of each margin? It could also have a checkbox that allows all four to be linked, like it is now. -
When you use a custom Surface as the input for the Gaussian Blur effect, and have the radius set to 0, it will mess with the pixels outside of the selection on the left and right. Like so: And of course we all know modifying pixels outside the selection on the Destination canvas will break Undo. This issue can be seen in plugins like my 'Inset Box Shadow' plugin, and BoltBait's 'Inner Shadow (Selection)'. Just set the Blur to 0 in either of these plugins. I do not know if this is a new bug, or if it existed in old version of paint.net. In the mean time, I suppose I can just use an If statement to bypass the Gaussian Blur if the value is 0. --------- Here's a reduce code example demonstrating the bug. Run it on a selection. protected override void OnSetRenderInfo(PropertyBasedEffectConfigToken newToken, RenderArgs dstArgs, RenderArgs srcArgs) { if (customSurface == null) customSurface = new Surface(srcArgs.Surface.Size); customSurface.Clear(Color.Purple); base.OnSetRenderInfo(newToken, dstArgs, srcArgs); } void Render(Surface dst, Surface src, Rectangle rect) { // Setup for calling the Gaussian Blur effect GaussianBlurEffect blurEffect = new GaussianBlurEffect(); PropertyCollection blurProps = blurEffect.CreatePropertyCollection(); PropertyBasedEffectConfigToken BlurParameters = new PropertyBasedEffectConfigToken(blurProps); BlurParameters.SetPropertyValue(GaussianBlurEffect.PropertyNames.Radius, 0); blurEffect.SetRenderInfo(BlurParameters, new RenderArgs(dst), new RenderArgs(customSurface)); // Call the Gaussian Blur function blurEffect.Render(new Rectangle[1] {rect},0,1); }
-
Inset Box Shadow v1.3 (Nov 3, 2018)
toe_head2001 replied to toe_head2001's topic in Plugins - Publishing ONLY!
You can already do this by making a selection before running the plugin. I know it's not the same, but it should work none-the-less. If you still think you need Offset controls, feel free to convince me. -
Inset Box Shadow v1.3 (Nov 3, 2018)
toe_head2001 replied to toe_head2001's topic in Plugins - Publishing ONLY!
Version 1.1 posted. - Added a Opacity slider for @Cc4FuzzyHuggles. - The maximum value Margin slider is no longer hard coded to 100. (100 was to high for small images, and too low for large images). It is now set dynamically based on canvas/selection size. If Vignette can be in the Photos menu, why not this? That was my thinking anyways. Technically speaking, this is not frame. It's literally an inset box shadow (as seen in CSS), with an optional margin. I'm not interesting in combining the functionality of the two plugins. However, my source code is under a Free Software license, so anyone that wants to use it, has the freedom to do so. -
Photoshop PSD file plugin (newest version: 2.5.0)
toe_head2001 replied to taoyue's topic in FileType Plugins
All the old versions are archived on the project's site. https://psdplugin.codeplex.com/releases/view/114721 -
How to do a transparent border?
toe_head2001 replied to ThisOneFukitaGuy's topic in Paint.NET Discussion and Questions
Here's the plugin: Inset Box Shadow -
Inset Box Shadow Effects -> Render -> Inset Box Shadow Before: After(s): . . Change Log v1.3 (Nov 3, 2018) Changed: Use the ColorWheel control with a built-in Alpha slider Changed: Move the plugin to be in the Render submenu v1.2 (March 5, 2016) New: Added controls to adjust Offsets v1.1 (Feb 9, 2016) New: Added a slider control to adjust Opacity Changed: The maximum value for Margin is now set dynamically based on canvas/selection size v1.0 (Feb 8, 2016) Initial release Download InsetBoxShadow.zip Source Code https://github.com/toehead2001/pdn-inset-box-shadow Icon based on icon from Fugue Icons.
-
[Feature] Scrolling past canvas- included?
toe_head2001 replied to indigosun's topic in Paint.NET Discussion and Questions
It's actually in Popular Feature Requests, not the FAQ. The status of the feature has not changed. Hopefully Rick will feel extra generous soon, and spend his free time to implement this for all of us. -
How to do a transparent border?
toe_head2001 replied to ThisOneFukitaGuy's topic in Paint.NET Discussion and Questions
I've thought of a way to completely automate this in code. I'll write the actual code tonight. -
How to do a transparent border?
toe_head2001 replied to ThisOneFukitaGuy's topic in Paint.NET Discussion and Questions
^That should work. I forgot about that plugin. Set the Softness to 1 in TR's QuickOutliner. Then you'll need to use Gaussian Blur (Clamped), instead of the regular Gaussian Blur (otherwise color bleeding will happen). That should give the exact same effect that's in your example image. -
How to do a transparent border?
toe_head2001 replied to ThisOneFukitaGuy's topic in Paint.NET Discussion and Questions
There's got to be an easy (automated) way to do this. In CSS, that's called an 'inset box shadow'. I don't think sure such a function exists in .NET. I'll see if I can hack something together. -
How do I link a plugin DLL with a utility DLL?
toe_head2001 replied to MJW's topic in Plugin Developer's Central
I'm not sure this fits your needs, but I came across ILMerge-GUI today. It lets you merge your dependencies into your main .dll file. As its name suggests, it only works with .NET assemblies. It's very easy to use, and It works very well. -
Installing PDN under Wine in Linux/Mac.
toe_head2001 replied to dipstick's topic in Paint.NET Discussion and Questions
I've never tried it myself, but someone got v3.5 to work. https://appdb.winehq.org/objectManager.php?sClass=version&iId=19822 Are you using the latest version of Wine? I know the packages provided by many of the distros are still on v1.6. The only thing I've ever installed under Wine was Age of Empires 2. That works great; even better than it does on Windows. -
I was playing with ScintillaNET this morning, and decided to try using it in CodeLab for fun. BoltBait, you should look into this. It's highly configurable. It's like having Notepad++ (which uses Scintilla) inside CodeLab. Although the IntelliSense stuff might be difficult, but I didn't look at how it's currently being done in CodeLab, so maybe not difficult to integrate the current implementation into the Scintilla control... Edit: I took a look at the code for the custom IntelliSense, and I don't see why it wouldn't work. Advantages over using a RichTextBox: -Code folding -Show white space -Line numbers (adjusted for the hidden prepended lines of code?) -Undo! -Word wrap -Autocomplete (things not covered by the IntelliSense) -Current Line indicator -all the other features that Scintilla has -Discard all the code hacks to get RichTextBox working as a code editor
-
Graph Paper v2.1 (Feb 1, 2018)
toe_head2001 replied to toe_head2001's topic in Plugins - Publishing ONLY!
I worked on this again last night. Here is a work-in-progress build. This will replace your current version. You may want to rename the filename of the current one. eg: GraphPaper.dll.old The organization of the UI is still not ideal. Added: -Options for adjusting the Color of the Cells, Groups, and Clusters. -Option for background Color (None/Transparent, the Secondary Color, Custom Color) -Dash Styles for Cells, Groups, and Clusters (Solid, Dashed, Dotted). -- Dash styles may look awful on Isometric (blame GDI; may be an excuse to try using Cairo via libgdiplus) ---Download Removed--- Place both GraphPaper.dll & GraphPaper.dlc in your Effects folder. If you don't have midora's Parallel Lines and Patterns installed, you'll need to download it so you'll have the 'OptionBasedLibrary v0.7.9' files. -
You can use the Circle Text plugin to form the text in a semi-circle. It's free of charge, like 99.99% of the plugins on this forum. If Dropbox doesn't let you hotlink your image, you can always use a plain text link. https://www.dropbox.com/s/go4o2g496xwpo58/Screenshot%202016-01-26%2020.59.17.png
-
Graph Paper v2.1 (Feb 1, 2018)
toe_head2001 replied to toe_head2001's topic in Plugins - Publishing ONLY!
The most recent version is bundled with Parallel Lines and Patterns.