Jump to content
How to Install Plugins ×

CodeLab v6.11 for Paint.NET 5.0.11 (Updated December 3, 2023)

Recommended Posts

There are places on the internet (google) but according to various people on here that know C# a book is one of the best ways to learn it.


Son, someday you will make a girl happy for a short period of time. Then she'll leave you & be with men that are ten times

better than you can imagine. These men are called musicians. :D

Link to comment
Share on other sites

  • 2 weeks later...

In fact, I've asked Rick for a hand full of other words as well. He's hesitant to add them, but he hasn't said "no".

It's nice to see that you have it in mind. :)

The point is that codelab is also used by plugin developers, and such a simple string change would affect all new plugins made with codelab in a positive way. Maybe it should be changed before including the other features...

And last but not least: BoltBait, haven't you said you would change your plugins according to the new strings? It's quite a while since PDN 3.10 is out...

Or did I missed changes? :shock:

Link to comment
Share on other sites

  • 1 month later...

I really think, that you should update this plugin, for me this is the best plugin ever made by anyone.

Can`t you please make changes like this:

int Amount1=0;	//[0,100]Slider 1 Description
int Amount2=0;	//[0,100]Slider 2 Description
int Amount3=0;	//[0,100]Slider 3 Description
int BoxesNumber=4;
void Render(Surface dst, Surface src, Rectangle rect)
   PdnRegion selectionRegion = EnvironmentParameters.GetSelection(src.Bounds);

   // Delete any of these lines you don't need
   Rectangle selection = this.EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt();

   long CenterX = (long)(((selection.Right - selection.Left) / 2)+selection.Left);
   long CenterY = (long)(((selection.Bottom - selection.Top) / 2)+selection.Top);
   ColorBgra PrimaryColor = (ColorBgra)EnvironmentParameters.PrimaryColor;
   ColorBgra SecondaryColor = (ColorBgra)EnvironmentParameters.SecondaryColor;
   int BrushWidth = (int)EnvironmentParameters.BrushWidth;

   ColorBgra CurrentPixel;
   for(int y = rect.Top; y < rect.Bottom; y++)
       for (int x = rect.Left; x < rect.Right; x++)
           if (selectionRegion.IsVisible(x, y))
               CurrentPixel = src[x,y];
               // TODO: Add pixel processing code here
               // Access RGBA values this way, for example:
               // CurrentPixel.R = (byte)PrimaryColor.R;
               // CurrentPixel.G = (byte)PrimaryColor.G;
               // CurrentPixel.B = (byte)PrimaryColor.B;
               // CurrentPixel.A = (byte)PrimaryColor.A;
               // if(CheckBox[1]){CurrentPixel.R=CurrentPixel.G;}
               // if(CheckBox[2]){CurrentPixel.G=CurrentPixel.B;}
               // if(CheckBox[3]){CurrentPixel.B=CurrentPixel.R;}
               dst[x,y] = CurrentPixel;

and in variable BoxesNumber will be number of checkboxes to create

in array CheckBox[] would be stored state of checkboxes, that would be created for Plugin when you will choose "Make DLL" button.

You must listen to me! I beg you!


The Asmageddon is coming.

You better prepare... or you won`t survive

Link to comment
Share on other sites

  • 5 weeks later...
  • 2 weeks later...

This is the ultimate way to experiment with PdN. :D

I just hope I can create a cool Plug-in.

---- Gallery | Sig Tutorial | deviantART | Sig Videos | PhotoBucket ----

D                  E                  S                  T                  I                 N                  Y

Link to comment
Share on other sites

  • 3 weeks later...
Will there be a new version of codelab, maybe supporting localized namespaces and the new UI features? Is there any ETA?

I found some time to update CodeLab! Yay!!! :AddNoise:

NEW IN 3.2

- When a standard Effects submenu is used (for example Blurs), effects made

with CodeLab will show up in the localized menu when running Paint.NET

in a localized mode.

- If the Adjustments submenu is chosen, the effect will show up in the

Adjustments menu instead of the Effects > Adjustments menu.

- A default submenu can be defined in code by using the following comment:

// submenu: blurs

- CodeLab has been moved under the Effects > Advanced submenu.

- Removed the "if (selectionRegion.IsVisible(x, y))" check in the default script

NOTE: This is the last update before I tackle the new UI stuff...

Go get it here: http://boltbait.googlepages.com/codelab

Enjoy. 8)

Link to comment
Share on other sites

Yay! Updates! :D

Thanks for the update...

About adjustments, it's just sad, I(we) create an effect and because we(I) want it under Adjustment, then we/I can't use the repeat function Ctrl+F :(

If you really need to Ctrl-F an adjustment, use ScriptLab.


ambigram signature by Kemaru

[i write plugins and stuff]

If you like a post, upvote it!

Link to comment
Share on other sites

You should remove the "if (selectionRegion.IsVisible(x, y))" lines from the default code sample, as Rick has stated on multiple occasions that - at least within the context of CodeLab - it serves no purpose other than to hinder performance.


ambigram signature by Kemaru

[i write plugins and stuff]

If you like a post, upvote it!

Link to comment
Share on other sites

CodeLab is so usefull, but there is one thing i want to ask for:Can you add option to not compile it every time when you stop writing?

Sometimes it is annoying. :evil:

Why would that be annoying? It's not like it stops you from working...


ambigram signature by Kemaru

[i write plugins and stuff]

If you like a post, upvote it!

Link to comment
Share on other sites

I've been playing with Codelab a little lately, thanks BoltBait for all your hard work on it.

As my eyes get weaker I find it harder to read text on the screen. So, would it be possible to setup some default settings for codelab with maybe a codelab.ini file?

// Codelab.ini
0,0,799,599     // Window coordinates: top left to bottom right (so I can resize and the new size will persist on reopening).
16              // Font size in pixels
#00FF00         // Comments color

I don't want a fully featured word processor, just a little tweak to make the font/opening window a bit larger.

[edit additonal]

If an *.ini file is not going to happen, my other wish is for a couple more tools on the toolbar?


Link to comment
Share on other sites

  • 3 weeks later...

I think Codelab is the better plugin ever, since it has the power of 1000 plugins and more. Thanks to Tom, Rick, BoltBait and anyone that contributed to it.

There is room for improvement, of course.

I don't ask for a better text editor. I don't ask for automatic formatting or syntax coloring. I don't ask for auto-completion of variable or function names. I don't ask for direct linking to msdn for syntax reference. I don't ask for automatic bugs correction.

I only ask for some more sliders in the user interface. Two or three more only. Please. I don't think it is a complex work to do. Is it possible? If it is not possible, no matter. I thank you anyway.



Link to comment
Share on other sites

  • BoltBait changed the title to CodeLab v6.11 for Paint.NET 5.0.11 (Updated December 3, 2023)
  • Rick Brewster changed the title to CodeLab v6.8 for Paint.NET 5.0
  • Rick Brewster pinned this topic
  • Rick Brewster unpinned and featured this topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...