The2Banned2One Posted January 12, 2009 Share Posted January 12, 2009 Can someone tell me how to make a plugin? Quote Link to comment Share on other sites More sharing options...
BoltBait Posted January 12, 2009 Share Posted January 12, 2009 Start here: http://www.boltbait.com/pdn/codelab/help/overview.html Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
The2Banned2One Posted January 13, 2009 Author Share Posted January 13, 2009 Thanks. So I have to write them in code. I might need more help. Edit: Umm what would be the variables used to use different colors other than Red Green and Blue? Quote Link to comment Share on other sites More sharing options...
pyrochild Posted January 14, 2009 Share Posted January 14, 2009 All colors on a computer are made up of different amounts of red, green, and blue. http://en.wikipedia.org/wiki/Rgb Quote ambigram signature by Kemaru [i write plugins and stuff] If you like a post, upvote it! Link to comment Share on other sites More sharing options...
The2Banned2One Posted January 14, 2009 Author Share Posted January 14, 2009 So how would you make a plugin that using a slider makes the page more black. So that if you move it a certain ammount it will be a certain shade of crey and all the way your entire page black. How would you do this? Quote Link to comment Share on other sites More sharing options...
Simon Brown Posted January 14, 2009 Share Posted January 14, 2009 I suggest following a basic c# tutorial on the web first. Quote Link to comment Share on other sites More sharing options...
The2Banned2One Posted January 14, 2009 Author Share Posted January 14, 2009 I looked for C# tutorials and most of it had nothing to do with creating effects. I looked through many things and nothing to with images or anything of the sort. I just want to learn the coding for making effects in codelab and nothing more. Quote Link to comment Share on other sites More sharing options...
Simon Brown Posted January 14, 2009 Share Posted January 14, 2009 It doesn't need to have something to do with PDN effects or image effects, just to give you a brief introduction to the basics of how c# works, which the tutorial BB links to gives as a requirement and thus may make it easier to understand. Quote Link to comment Share on other sites More sharing options...
BoltBait Posted January 14, 2009 Share Posted January 14, 2009 Here are some tutorials: http://paintdotnet.12.forumer.com/viewtopic.php?t=5281 http://paintdotnet.12.forumer.com/viewtopic.php?t=5308 http://paintdotnet.12.forumer.com/viewtopic.php?t=6405 Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
david.atwell Posted January 14, 2009 Share Posted January 14, 2009 I think that before you make any plugins, you should understand some more about how a computer works. RGB colorspace is a very basic concept that you should have some understanding of before you start. For instance, do you know what color the hex code #FF0000 would produce (triplet 255, 0, 0)? Do you understand the additive model of color? Do you know what the color white is? If someone said "CMYK," would you know how to explain what that is to them? In addition, your reply about coding makes it sound like you could study a bit more there, as well. For instance, everything in the computer world requires coding of some kind. A computer doesn't understand anything unless it's coded to it (it doesn't even understand code without a process that translates that code into binary digits that it can process). So teaching it something new is very difficult. I hope you don't take this as a dig. I'm trying to help you understand that there are some very basic concepts you should know before you embark upon a programming journey. It's a very long process, and people spend years trying to master it. The fact that we only have five or six plugin authors who publish with any frequency whatsoever should tell you something about its difficulty. :-) I also don't mean to discourage you. The fact that we only have half a dozen plugin authors means we could always use more. But it won't be easy. Not by a long shot. :-) Quote The Doctor: There was a goblin, or a trickster, or a warrior... A nameless, terrible thing, soaked in the blood of a billion galaxies. The most feared being in all the cosmos. And nothing could stop it, or hold it, or reason with it. One day it would just drop out of the sky and tear down your world.Amy: But how did it end up in there?The Doctor: You know fairy tales. A good wizard tricked it.River Song: I hate good wizards in fairy tales; they always turn out to be him. Link to comment Share on other sites More sharing options...
The2Banned2One Posted January 17, 2009 Author Share Posted January 17, 2009 I know many computer languages, but after looking at C# I didn't find many things that seemed helpful for making plugins. Could someone give me a link to a good C# tutorial that will help me a lot with making PLUGINS. edit: I already read all those tuts boltbait. Quote Link to comment Share on other sites More sharing options...
Simon Brown Posted January 17, 2009 Share Posted January 17, 2009 Have you programmed in OO before? Quote Link to comment Share on other sites More sharing options...
The2Banned2One Posted January 17, 2009 Author Share Posted January 17, 2009 No. Quote Link to comment Share on other sites More sharing options...
Bob Posted January 17, 2009 Share Posted January 17, 2009 I know many computer languages Give us a few names, like the ones you used the most. Quote No. Way. I've just seen Bob. And... *poof!*—just like that—he disappears into the mist again. ~Helio Link to comment Share on other sites More sharing options...
The2Banned2One Posted January 18, 2009 Author Share Posted January 18, 2009 Html, Xml, XHtml, Javascript, Php Quote Link to comment Share on other sites More sharing options...
Simon Brown Posted January 18, 2009 Share Posted January 18, 2009 Are you more used to javascript or PHP? Quote Link to comment Share on other sites More sharing options...
The2Banned2One Posted January 19, 2009 Author Share Posted January 19, 2009 Javascript, but why does it matter. Quote Link to comment Share on other sites More sharing options...
Andrew D Posted January 19, 2009 Share Posted January 19, 2009 Html, Xml, XHtml, Javascript, Php They're generally for website development over program development. I'd strongly recommend learning a C-based language, wherever it's just C, C++ or C#, or you will not find making a plugin very easy. That said, coding of any kind is a very hard thing. Quote Link to comment Share on other sites More sharing options...
Ndshacker Posted February 3, 2009 Share Posted February 3, 2009 Sorry to necro this topic -.- But I would like to see if I cant figure out how this plugin works (Dot at center) My notes are under lined void Render(Surface dst, Surface src, Rectangle rect) This tells us its going to render using a series of rectangles{ // Delete any of these lines you don't need Rectangle selection = this.EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt(); This gets the parameters of your canvas as in Height and lenghth. long CenterX = (long)(((selection.Right - selection.Left) / 2)+selection.Left); This uses a basic formula to find the middle of our x axis. long CenterY = (long)(((selection.Bottom - selection.Top) / 2)+selection.Top); Same as above only for y axis ColorBgra PrimaryColor = (ColorBgra)EnvironmentParameters.PrimaryColor; The next three lines find our colors and the brush size. ColorBgra SecondaryColor = (ColorBgra)EnvironmentParameters.SecondaryColor; int BrushWidth = (int)EnvironmentParameters.BrushWidth; ColorBgra CurrentPixel; selecting the pixel, using C if im not mistaken for(int y = rect.Top; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) { CurrentPixel = src[x,y]; if ((y == CenterY) && (x == CenterX)) { // TODO: Add pixel processing code here And finally it gets colored // 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; } dst[x,y] = CurrentPixel; } } } Sorry if this seemed noobish, but i am really interested in making effects. And considering my age,I have lots of time to learn Quote Link to comment Share on other sites More sharing options...
Ndshacker Posted February 3, 2009 Share Posted February 3, 2009 Sorry to necro this topic -.- But I would like to see if I cant figure out how this plugin works (Dot at center) My notes are under lined void Render(Surface dst, Surface src, Rectangle rect) This tells us its going to render using a series of rectangles{ // Delete any of these lines you don't need Rectangle selection = this.EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt(); This gets the parameters of your canvas as in Height and lenghth. long CenterX = (long)(((selection.Right - selection.Left) / 2)+selection.Left); This uses a basic formula to find the middle of our x axis. long CenterY = (long)(((selection.Bottom - selection.Top) / 2)+selection.Top); Same as above only for y axis ColorBgra PrimaryColor = (ColorBgra)EnvironmentParameters.PrimaryColor; The next three lines find our colors and the brush size. ColorBgra SecondaryColor = (ColorBgra)EnvironmentParameters.SecondaryColor; int BrushWidth = (int)EnvironmentParameters.BrushWidth; ColorBgra CurrentPixel; selecting the pixel, using C if im not mistaken for(int y = rect.Top; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) { CurrentPixel = src[x,y]; if ((y == CenterY) && (x == CenterX)) { // TODO: Add pixel processing code here And finally it gets colored // 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; } dst[x,y] = CurrentPixel; } } } Sorry if this seemed noobish, but i am really interested in making effects. And considering my age,I have lots of time to learn Quote Link to comment Share on other sites More sharing options...
Aethec Posted February 3, 2009 Share Posted February 3, 2009 You're right, except for the "selecting pixel". ColorBgra CurrentPixel; simply creates a pixel. CurrentPixel = src [x,y] Here it "fills" (don't know if I can say this...my English is not very good...) the CurrentPixel pixel with the pixel located at the X and Y coords of the surface src. dst [x,y] = CurrentPixel; And here it "fills" the pixel located at the X and Y coords of the surface dst with CurrentPixel's value. Quote Link to comment Share on other sites More sharing options...
Aethec Posted February 3, 2009 Share Posted February 3, 2009 You're right, except for the "selecting pixel". ColorBgra CurrentPixel; simply creates a pixel. CurrentPixel = src [x,y] Here it "fills" (don't know if I can say this...my English is not very good...) the CurrentPixel pixel with the pixel located at the X and Y coords of the surface src. dst [x,y] = CurrentPixel; And here it "fills" the pixel located at the X and Y coords of the surface dst with CurrentPixel's value. Quote Link to comment Share on other sites More sharing options...
AmadeusX Posted February 4, 2009 Share Posted February 4, 2009 Else, here is a site i used to read tutorials, named ProgrammersHeaven Quote Link to comment Share on other sites More sharing options...
AmadeusX Posted February 4, 2009 Share Posted February 4, 2009 Else, here is a site i used to read tutorials, named ProgrammersHeaven Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted February 4, 2009 Share Posted February 4, 2009 You're right, except for the "selecting pixel". ColorBgra CurrentPixel; simply creates a pixel. Nearly right, but not quite :wink:. The line sets up a variable called CurrentPixel. ColorBgra defines the type of variable that we are setting up, CurrentPixel is the name of that variable. Later when we use CurrentPixel in our code we know that it has been setup as a variable which holds color data [ColorBgra = ColorB(lue)g(reen)r(ed)a(lpha)]. In the original code see how ColorBgra is used to define the same variable type when we set the two variables PrimaryColor and SecondaryColor to the currently selected Primary and Secondary colors? Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.