Jump to content


Photo

Grid Maker Plugin v2.0


  • Please log in to reply
59 replies to this topic

#1 Illnab1024

Illnab1024
  • Members
  • 1,298 posts
  • LocationMiddle Tennessee
  • Reputation:5

Posted 09 October 2006 - 07:35 PM

For those who need it, from those who give it, is a grid maker plug-in, allowing you to choose the size of the grid, and the ability to preserve the background of your selection.

Download DLL v2.0: GridMaker.dll
Download Source v1.1: GridSRC.zip
Download Source v2.0: GridSRC_2_0.zip

Posted Image


BoltBait is again responsible for the Render Function, whereas I did the niceties of a UI.
~~

#2 Rick Brewster

Rick Brewster

    Paint.NET Author and Developer

  • Administrators
  • 12,566 posts
  • LocationKirkland, WA
  • Reputation:120

Posted 09 October 2006 - 07:54 PM

One quick idea: On the dialog it says "Plugin coded by ...", but hey why not use a LinkLabel control and give a link to this forum post where users can download it? That also helps so that if someone gives the plugin to a friend, they can find it and get updates easily (and maybe grab other plugins too, in the process).
The Paint.NET Blog: http://blog.getpaint.net/
Donations are always appreciated! http://www.getpaint.net/donate.html

Posted Image

#3 Illnab1024

Illnab1024
  • Members
  • 1,298 posts
  • LocationMiddle Tennessee
  • Reputation:5

Posted 09 October 2006 - 07:56 PM

Good Idea!

I'll get onto that right quick.
~~

#4 BoltBait

BoltBait
  • Administrators
  • 8,910 posts
  • LocationCalifornia, USA
  • Reputation:103

Posted 09 October 2006 - 07:57 PM

What if you move your forum?
Click to play:
Posted ImagePosted ImagePosted ImagePosted ImagePosted Image
Download: BoltBait's Plugin Pack | CodeLab | More... and how about a Computer Dominos Game

#5 Illnab1024

Illnab1024
  • Members
  • 1,298 posts
  • LocationMiddle Tennessee
  • Reputation:5

Posted 09 October 2006 - 07:58 PM

I don't think that's happening anytime soon...
~~

#6 BoltBait

BoltBait
  • Administrators
  • 8,910 posts
  • LocationCalifornia, USA
  • Reputation:103

Posted 09 October 2006 - 07:59 PM

Perhaps if Rick setup a redirector like:

http://www.getpaint.net/plugins

Or, something like that.
Click to play:
Posted ImagePosted ImagePosted ImagePosted ImagePosted Image
Download: BoltBait's Plugin Pack | CodeLab | More... and how about a Computer Dominos Game

#7 Rick Brewster

Rick Brewster

    Paint.NET Author and Developer

  • Administrators
  • 12,566 posts
  • LocationKirkland, WA
  • Reputation:120

Posted 09 October 2006 - 08:01 PM

Already a step ahead of you.

http://www.getpaint....ct/plugins.html

Just link to that.
The Paint.NET Blog: http://blog.getpaint.net/
Donations are always appreciated! http://www.getpaint.net/donate.html

Posted Image

#8 Illnab1024

Illnab1024
  • Members
  • 1,298 posts
  • LocationMiddle Tennessee
  • Reputation:5

Posted 09 October 2006 - 08:09 PM

Version 1.1 Released, Link to Plugins forum added.
~~

#9 Rick Brewster

Rick Brewster

    Paint.NET Author and Developer

  • Administrators
  • 12,566 posts
  • LocationKirkland, WA
  • Reputation:120

Posted 09 October 2006 - 08:13 PM

Clicking the link doesn't work ... are you using PaintDotNet.SystemLayer.Shell.OpenURL() in the appropriate Click handler? (it should be in the 2.xx codebase as well as 3.0)
The Paint.NET Blog: http://blog.getpaint.net/
Donations are always appreciated! http://www.getpaint.net/donate.html

Posted Image

#10 Illnab1024

Illnab1024
  • Members
  • 1,298 posts
  • LocationMiddle Tennessee
  • Reputation:5

Posted 09 October 2006 - 08:15 PM

I got stupid and never put the EventHandler in...

EDIT: And it ain't showing up with 2.72 systemlayers dll's... :(

Edit2: Nevermind, wrong case... Okay, it's all good
~~

#11 Hellfire010

Hellfire010
  • Members
  • 737 posts
  • LocationNJ, USA
  • Reputation:0

Posted 10 October 2006 - 10:27 PM

Thanks for this, it really helped me (i'm slightly numercally challanged :P) xD
Posted Image

#12 Austin Spafford

Austin Spafford
  • Newbies
  • 2 posts
  • Reputation:0

Posted 26 October 2006 - 01:29 AM

I've been itching for Paint.NET to have a grid generator, but what I need is a checkerboard of the primary and secondary colors.

I suppose I could just whip that up in CodeLab... :P

-Austin Spafford

#13 barkbark00

barkbark00
  • Members
  • 3,336 posts
  • Reputation:2

Posted 26 October 2006 - 01:16 PM

I have a question. What controls the thickness of the bars in the grid? Is it the brush thickness. I know that the UI controls the spacing of the bars...
Posted Image
Take responsibility for your own intelligence. ;) -Rick Brewster

#14 BoltBait

BoltBait
  • Administrators
  • 8,910 posts
  • LocationCalifornia, USA
  • Reputation:103

Posted 26 October 2006 - 04:52 PM

<-- *I* control the thickness. :P

I set it at 1 and that's where its going to stay.

Austin Spafford, I have made the code changes to support making checker boards. I will see if Illnab1024 has time to modify the UI and rebuild the DLL.
Click to play:
Posted ImagePosted ImagePosted ImagePosted ImagePosted Image
Download: BoltBait's Plugin Pack | CodeLab | More... and how about a Computer Dominos Game

#15 barkbark00

barkbark00
  • Members
  • 3,336 posts
  • Reputation:2

Posted 26 October 2006 - 06:01 PM

Gridgod(er...BoltBait), Would there be a way to add an adjustment that effected pixel thickness or maybe even a thickness percentage?
Posted Image
Take responsibility for your own intelligence. ;) -Rick Brewster

#16 BoltBait

BoltBait
  • Administrators
  • 8,910 posts
  • LocationCalifornia, USA
  • Reputation:103

Posted 26 October 2006 - 06:04 PM

barkbark00, I'll see if I have access to Brush Width...
Click to play:
Posted ImagePosted ImagePosted ImagePosted ImagePosted Image
Download: BoltBait's Plugin Pack | CodeLab | More... and how about a Computer Dominos Game

#17 barkbark00

barkbark00
  • Members
  • 3,336 posts
  • Reputation:2

Posted 26 October 2006 - 06:15 PM

That would be cool!
Posted Image
Take responsibility for your own intelligence. ;) -Rick Brewster

#18 BoltBait

BoltBait
  • Administrators
  • 8,910 posts
  • LocationCalifornia, USA
  • Reputation:103

Posted 26 October 2006 - 06:25 PM

OK, got it.

Changes include:

* Support for grids OR checker boards
* Support for brush width (or the default size of 1)

I sent the code to Illnab1024 for an update.
Click to play:
Posted ImagePosted ImagePosted ImagePosted ImagePosted Image
Download: BoltBait's Plugin Pack | CodeLab | More... and how about a Computer Dominos Game

#19 barkbark00

barkbark00
  • Members
  • 3,336 posts
  • Reputation:2

Posted 26 October 2006 - 06:29 PM

Sweet!
Posted Image
Take responsibility for your own intelligence. ;) -Rick Brewster

#20 Illnab1024

Illnab1024
  • Members
  • 1,298 posts
  • LocationMiddle Tennessee
  • Reputation:5

Posted 27 October 2006 - 02:11 AM

Updated. Go see for yourself.
~~