BoltBait Posted June 17, 2007 Share Posted June 17, 2007 I've never been happy with the C# Code Syntax Highlighter here on this site, so this tutorial has been moved here: How to Write an Effect Plugin (Part 1 of 4 - Simple)This tutorial contains an overview of how Paint.NET works with effects and covers using CodeLab to create a simple effect that does not require any settable user controls. If you have questions about the tutorial, you can post them here in this thread and I will address them. Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
FireFly Posted June 17, 2007 Share Posted June 17, 2007 Thanks very much BoltBait Quote Link to comment Share on other sites More sharing options...
EvilNeko Posted June 17, 2007 Share Posted June 17, 2007 It works but not how my brain can think of it >,< No way I can make this up on my own, but hey, im still learning ^^ Great tut Boltbait! ~EvilNeko Quote Link to comment Share on other sites More sharing options...
FireFly Posted June 17, 2007 Share Posted June 17, 2007 I was playing around with one of the rainbow sample codes and changed the equations. I came up with a colour wheel that stays saturated. Is there already a plugin like this because it would be cool to release my first Quote Link to comment Share on other sites More sharing options...
PineappleQc Posted June 17, 2007 Share Posted June 17, 2007 Ahhh! Finally I'd been waiting for that over loooong time! Quote "Ah, i love it when huge pineapples try to take over the world, it makes me sentimental :')" -Stephan Link to comment Share on other sites More sharing options...
HellSpawn Posted June 17, 2007 Share Posted June 17, 2007 lol good tut bolt, this can help people tying to learn plugins to actually be aple to make one. nice work Quote Link to comment Share on other sites More sharing options...
The_Lionhearted Posted June 17, 2007 Share Posted June 17, 2007 Excellent BoltBait...one of these days when I have the time I'll get into plugin programming...I'm still burnt out from programming all the time at work/school. :mtdew: :mtdew: Quote My Gallery Link to comment Share on other sites More sharing options...
MadJik Posted June 17, 2007 Share Posted June 17, 2007 Good job BB, /joke/ but FireFly was asking for something easier than DotAtTheCenter. You should have try DotAtZeroZero! /end of joke/ What we are missing now is a topic where we could post our codelab! Like this: int Amount1=128; //[1,256]Red (1,256,dft=128) int Amount2=128; //[1,256]Green(1,256,dft=128) int Amount3=128; //[1,256]Blue (1,256,dft=128) void Render(Surface dst, Surface src, Rectangle rect) { Rectangle selection = this.EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt(); ColorBgra CurrentPixel; for(int y = rect.Top; y < rect.Bottom; y++) for (int x = rect.Left; x < rect.Right; x++) { CurrentPixel = src[x,y]; CurrentPixel.R = (byte)(x%Amount1); CurrentPixel.G = (byte)(y%Amount2); CurrentPixel.B = (byte)((x+y)%Amount3); dst[x,y] = CurrentPixel; } } Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal Link to comment Share on other sites More sharing options...
usedHONDA Posted June 19, 2007 Share Posted June 19, 2007 Nice tut! (Although I may never use it ) Quote "The greatest thing about the Internet is that you can write anything you want and give it a false source." ~Ezra Pound twtr | dA | tmblr | yt | fb Link to comment Share on other sites More sharing options...
pyrochild Posted June 19, 2007 Share Posted June 19, 2007 Hopefully, thanks to this tutorial, we will start seeing a bunch more plugins being published. And, hopefully, they won't all be completely useless. "Look! I made an Invert Colors plugin!" "Paint.NET can already do that..." "I know, but mine is slower!" "Why did you even bother?" "Just to see if I could..." "Great..." *bangs head on wall* 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...
dragonpyro Posted June 19, 2007 Share Posted June 19, 2007 I know C# (at least a little beyond the basics) but It has been confising to me because I can't do anything related to graphics or drawing. Especially making a plug-in for Paint.Net. This tutorial clarified a lot of things for me, but probably not enough for me to accually make a plug-in. Quote Link to comment Share on other sites More sharing options...
penguin Posted June 19, 2007 Share Posted June 19, 2007 Sticky these. They will really help new programmers (like me) Quote Link to comment Share on other sites More sharing options...
BoltBait Posted June 19, 2007 Author Share Posted June 19, 2007 Sticky these. They will really help new programmers (like me) Thanks. But, I don't like to sticky my own posts as that hardly seems fair. However, if another mod wants to do it, I wouldn't protest. Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
barkbark00 Posted June 19, 2007 Share Posted June 19, 2007 Thanks. But, I don't like to sticky my own posts as that hardly seems fair. Rick does it.... Quote  Take responsibility for your own intelligence. 😉 -Rick Brewster Link to comment Share on other sites More sharing options...
The_Lionhearted Posted June 19, 2007 Share Posted June 19, 2007 Thanks. But, I don't like to sticky my own posts as that hardly seems fair. Rick does it.... Hey. It's Rick. He's allowed. Quote My Gallery Link to comment Share on other sites More sharing options...
Cornipsus Posted June 24, 2007 Share Posted June 24, 2007 What's the for loop for? Quote The God of Judgement is not pleased... Link to comment Share on other sites More sharing options...
BoltBait Posted July 10, 2007 Author Share Posted July 10, 2007 What's the for loop for? The loop is for processing each pixel of the selection one at a time. The "for y" loop steps through each row, from top to bottom. The "for x" loop steps through each pixel on the current row from left to right.When you are inside of the x loop, you are working on a single pixel on the destination canvas. Each time you finish an X loop, it processes the next row in the Y loop. Does that help? Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
FireFly Posted July 11, 2007 Share Posted July 11, 2007 I know the question wasn't directed at me, but yes, it helps - thanks Quote Link to comment Share on other sites More sharing options...
trippdoctor Posted September 1, 2007 Share Posted September 1, 2007 What about C++ I don't want to learn a whole new language even though C# seems similar and mite be easy to change over. Quote Trippdoctor | PDN Fanatics | Get Paint .NET Link to comment Share on other sites More sharing options...
Mr Frojo Posted September 1, 2007 Share Posted September 1, 2007 You can write plugins in c++ I belive. Theres no tuts or anything on doing that, because most everyone here uses c#. You could probobly build off of these tuts, because c++ and c# arnt all too different. Quote I'm still alive! Link to comment Share on other sites More sharing options...
TheFreak002 Posted September 4, 2007 Share Posted September 4, 2007 At last i have found it! My saviour! i've always ben meaning to try to write my own plugin though now that i've seen this it confuses me a little . if You say we need a little knowledge of C#, could someone please give me a link or something which explains how C# works? For instance I don't understand why at the end of each line you go further and further and open (or close) a "{}" Please help Quote Link to comment Share on other sites More sharing options...
Bob Posted September 4, 2007 Share Posted September 4, 2007 http://msdn2.microsoft.com/ 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...
DarkShock Posted January 13, 2008 Share Posted January 13, 2008 I just downloaded the new version. I never use it, but maybe I won't fell lazy one day and make a plug-in. Quote ---- Gallery | Sig Tutorial | deviantART | Sig Videos | PhotoBucket ----DÂ Â Â Â Â Â Â Â Â Â Â EÂ Â Â Â Â Â Â Â Â Â SÂ Â Â Â Â Â Â Â Â Â TÂ Â Â Â Â Â Â Â Â Â Â IÂ Â Â Â Â Â Â Â Â Â Â NÂ Â Â Â Â Â Â Â Â Â Â Y Link to comment Share on other sites More sharing options...
Richard Posted January 13, 2008 Share Posted January 13, 2008 I'm too young and innocent to understand that :oops: Quote Sig by CommanderSozo. Kiss him. Now. *The above post is not to be taken seriously. The above post contains sarcasm, and if you were offended by the above post, it is purely coincidental Sign here __________* If you use PdN, don't click this. Link to comment Share on other sites More sharing options...
Panhead Posted January 13, 2008 Share Posted January 13, 2008 hhhmmm ive been trying to learn C# this helps a little at the moment, i want to look over it more, that will probably help, i dont know if i know enough C# yet though :? Quote My deviantART iGraphix ~96% of teens won't stand up for God. Put this on your page if you're one of the 4% who will. skilletism (n.) - The abnormal liking of the band "Skillet". (see PANHEAD) panhead n. - an individual who shows extreme enthusiasm for the band Skillet. Generally driving for hours to concerts with frying pans riding shotgun. 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.