-
Posts
5,030 -
Joined
-
Last visited
-
Days Won
155
Posts posted by toe_head2001
-
-
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
- 3
-
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.- 1
-
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
-
toe_head2001, where did you get the OptionBasedEffects library? I can't find it posted anywhere.
The most recent version is bundled with Parallel Lines and Patterns.
- 1
-
I think I'm going to have to look into the OptionBasedEffects. I would certainly like something with more features than IndirectUI, but requiring less effort than raw Forms. I would appreciate anyone who has advice on using the OptionBasedEffects posting on Midora's thread on the subject (assuming that's okay with Midora).
I'm thinking about creating a Visual Studio template/demo Solution. I have other things to get done before I do that though.
If I might offer a minor suggestion for the Graph Paper effect's UI, I would say omit the "Tabs" label, which seems unnecessary, since it's pretty obvious they're tabs.
Yeah, "Tabs" is the name of the Property in the code. Since I didn't assign it a Label, it simply used it's literal name.
I already assigned it a blank Label shortly after those screenshots were posted.
-
The fastest and easiest way to do this is probably with ReMake's Line/Grid plugin.
- 2
-
The brushes are in this directory:
%UserProfile%\Documents\paint.net User Files\Custom Brushes
Simply copy & paste that into Run or your Explorer Window -
So what's stopping you from removing them?
Go back into the same directory where you added the custom Brushes, and simply delete the ones you don't want.
-
Alright, I'm feeling confident with using midora's OptionBasedEffects on this plugin going forward. It took me a while to figure how to fetch the effect Tokens, but every is now working. (except proper labels on UI controls )
Post any and all suggestions for new parameters.
-
NEW SHAPES PACK POSTED!
Holy cow, that's a lot of work you did. Thanks!
A suggestion for your zip package: Put the .xaml files in a folder, and then zip the folder. That way I can just drag that folder into my Shapes directory, and everything stays nice and organized.
i.e. I don't want to have to create the folder myself... laziness .
- 1
-
Here's a copy of the source code that's compatible with paint.net v4.0.7+ (when paint.net started using .NET 4.6). I've made some minor changes to the code so that it will compile, and so that it won't crash. No other changes were made.
TileFillFromClipboard_Source.zip
This is only meant for educational purposes, so I won't provide a built DLL file. If you want a proper tiling plugin, use the one(s) Boltbait created.
- 1
-
... May I suggest:
1. A choice for the color of the thinner lines for the standard grid.
2. The ability to draw just the grid lines. Either a background opacity slider or use Pdn's secondary color alpha, or copy the src over to use as background.
1. The reason I didn't do that is simply because additional Color Wheels make the dialog grow too big too fast. Sometimes I wish we could have a double wide IndirectUI with two columns. At one time Rick talked about having tabs in IndirectUI. I think I'm going to learn how to use Midora's OptionBasedEffects; it seems very flexible. If I can get it working with OptionBasedEffects, I'll update it with the new parameters then.
2. Excellent ideas.
Edit:
Didn't take me too long to figure out the basics. Here's what I've cobbled together so far.
- 3
-
It's interesting how you customized/extended IndirectUI like that (I learned something new), but I'm not sure Rick wants things like that published on this forum. I could be wrong.
-
Version 1.3 posted. I've added a preview box for the Line Style.
- 2
-
Version 2.0 posted. It now uses @MJW's DistanceTransform algorithm for the clamping; which means it will work on non-rectangular selections now.
- 2
-
Nice, you did all the work of adapting the algorithm for my needs.
A fast algorithm indeed.
-
I know I would use that feature if it were available.
In the rare case that I need to perform the same operation on all the layers, it would speed up the workflow.
- 2
-
Maybe, but this kind of what you call low tech effect is in fact what produces the most satisfying result in several contexts...
For the method that this plugin is using, what other context is there? None. The Basic Antialias plugin uses a much more complex algorithm to achieve anti-aliasing.
I think it's useless to ask to Pyjo himself because he didn't show any activity since 2 years.
That doesn't matter. Pyjo provided the source code, therefore other people/developers have the freedom to modify it. Your best bet is to post there. I easily spotted the lines in his code that deal with the values of the Alpha Channel (what you're calling strength?). I would be willing to help, but you'd need to post over there, and define your idea of 'strength' and 'radius' (I think I understand what you mean, but I want to be sure).
I'm sure there is a way of performing the same effect of the « scenario » you talked about in a simple plugin.
You say you're not a developer, and yet you are sure it can be done. Hmm, arrogance and ignorance really do go hand in hand. You'll have to trust me that it will not work in other scenarios/contexts.
Please don't take that as an insult; it was not meant to be.
-
I've just noticed that every time at first run when I use Kri's Average blur or drop shadow effect, PDN requests an internet connection in background. Any explanation ?
Interesting. It's downloading this XML document: http://users.telenet.be/krisvandermotten/Downloads/PaintDotNetEffects.xml
From looking at the contents of the document, I'm not sure what the purpose of the download would be. I'm guessing Kris was playing with some functionality, and forgot to remove it. Let's wait to hear it from the horse's mouth though.
-
Any chance for making this built-in antialias as a standalone effect ?
Sorry, the anti-aliasing in this effect is very low tech, and will only work in this scenario.
... I'm looking for something like the basic anti-alias plugin by pyjo but with customizable values ...
Which values do want to customize? The alpha values? The add/subtract distances?
Maybe post the specifics in the forum Topic for Basic Anti-aliasing plugin.
-
I said it was odd that I was thinking of adding the feature of looking at the only the selected region in a plugin I'm working on. What's odder is that the plugin does pretty much what you're interested in doing. It takes an "object" (a region surrounded by transparency) and extends it by setting each transparent pixel to the color of the nearest non-transparent pixel. It uses a separate surface, but the algorithm is O(n), where n in the number of pixels in the window. I describe the algorithm in my "Fast algorithm for finding the minimum distances to a set" comment.
(The idea of clamping the edge in this way would work for blurring convex selections, but wouldn't work for some non-convex selections, since the color from one edge could bleed over into another if the blur radius exceeded half the distance between the edges.)
Thank you. I'll take a close look at this during the weekend when I have plenty of time.
Concave selections are pretty rare (or maybe it's just me that never makes them), so I don't think that's a big deal.
... It only blurs the selected pixels of an irregular selection without the influence of the non-selected pixels...
Just because the non-selected pixels are transparent, doesn't mean they aren't influencing the selected ones. That's why transparency is bleeding into the blur when your code is run. This is why the clamping is so important.
The code you posted in regards to the PdnRegion will be helpful though. Much appreciated.
I'd seen PdnRegion in other people's code before, but I never bothered to see what it did or what it was used for.
-
...all it does is fills the image with a load of x: every 16 by 16 cell, i cant see how that translates in to a cell number...
The XYCoords plugin needs at least 24px to show the cell number. At 16px it's simply being cut off by the adjacent cell.
Making a numbered ruler to overly on top of a grid (a la BattleShip) would be very straightforward to code. Maybe someone will be nice and make it for you... or you could learn to do it yourself if you're into that sort of thing.
-
toe_head2001, I'm not sure how you produced the second image in your most-recent comment, but it it wasn't through a program, and you intend to write such a program, I may be able to help.
Nothing fancy; Many layers and zooming.
Help is always welcome and appreciated.
-
This code should solve your problem...
Yes, it may, in part. When I said non-rectangular, I was specifically thinking of elliptical selections. The clamping would need to be radial.
Like so:
--->
Which of course can be done in code, but I have yet to try anything yet and measure the performance.
Installing PDN under Wine in Linux/Mac.
in Paint.NET Discussion and Questions
Posted
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.