Mike Ryan Posted April 29, 2008 Share Posted April 29, 2008 (edited) Invert Alpha A Simple Plugin to Invert the Alpha Channel Download Invert Alpha is a simple plugin that inverts your Alpha Channel based off of your set tolerance. This plugin is most useful when dealing with transparency gradients, creating alpha masks, and more. To use this plugin, simply extract the zip file to your Effects folder and restart Paint.NET. Then go to Adjustments-> Invert Alpha. Toying with the tolerance is recommended to discover some more interesting uses for this plugin. Edited January 5, 2019 by toe_head2001 Reattached Zip Quote Link to comment Share on other sites More sharing options...
pyrochild Posted April 29, 2008 Share Posted April 29, 2008 Your first real plugin! Hurrah! I expect Liquefy next 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...
Mike Ryan Posted April 29, 2008 Author Share Posted April 29, 2008 Dont hold your breath to long Also, I want to give my thanks to Pyrochild for helping me out with this basic plugin. Quote Link to comment Share on other sites More sharing options...
pyrochild Posted April 29, 2008 Share Posted April 29, 2008 Also, I want to give my thanks to Pyrochild for helping me out with this basic plugin. Don't say that - people will think it's another prank! 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...
Mike Ryan Posted April 29, 2008 Author Share Posted April 29, 2008 Lol, then I also want to say this is NOT a prank. Also, thanks to BoltBait for publishing Code Lab and making my first plugin possible :wink: Quote Link to comment Share on other sites More sharing options...
Simon Brown Posted April 29, 2008 Share Posted April 29, 2008 Lol, then I also want to say this is NOT a prank. Thus giving the further impression that it is, in fact, a prank. Quote Link to comment Share on other sites More sharing options...
IceFusion Posted April 29, 2008 Share Posted April 29, 2008 Good plugin, mostly I just use a transparent gradient, I don't really change it around, but congrats on the plugin. Quote Visit-> My Website <-Visit Please Call Me Elite Override The trick to flying is throwing yourself at the floor and missing. Link to comment Share on other sites More sharing options...
Simon Brown Posted April 29, 2008 Share Posted April 29, 2008 I look forward to seeing your plugins in future. Quote Link to comment Share on other sites More sharing options...
R3VENGE Posted April 30, 2008 Share Posted April 30, 2008 nice plugin i look forward to seeing more of your works Quote psn id: R3V-fiR3 Link to comment Share on other sites More sharing options...
Truelove Posted May 4, 2008 Share Posted May 4, 2008 Very useful with HDR lighting... This is CodeLab code: Enjoy! Quote Link to comment Share on other sites More sharing options...
Mike Ryan Posted May 4, 2008 Author Share Posted May 4, 2008 TrueLove, while it is a basic plugin I would prefer that the source to any or all of my plugins be distributed solely by me. But I am glad that you enjoy using this plugin, and I hope it is a good start for future plugins from me. Quote Link to comment Share on other sites More sharing options...
Truelove Posted May 4, 2008 Share Posted May 4, 2008 Sorry if something going wrong, I've just wrote this source by myself to recreate your work. That's will not happen again. Quote Link to comment Share on other sites More sharing options...
Mike Ryan Posted May 4, 2008 Author Share Posted May 4, 2008 Not a real problem at all. And you wrote it exactly as i wrote it, that is why I got confused. Quote Link to comment Share on other sites More sharing options...
BoltBait Posted May 4, 2008 Share Posted May 4, 2008 If that's true, you have a bug in your code. You should use Utility.ClampToByte in there somewhere... Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
Mike Ryan Posted May 5, 2008 Author Share Posted May 5, 2008 ...? What bug? Who is buggin around? Anyways, this plugin is going to be superseded soon with some extra features. It will be entitled 'Alpha Works' and I wish I could confirm some extra features. Until then, good night to you all! Quote Link to comment Share on other sites More sharing options...
Truelove Posted May 6, 2008 Share Posted May 6, 2008 I imagine broken brain, when will try to rewrite new "Alpha Works" code... Quote Link to comment Share on other sites More sharing options...
Truelove Posted May 6, 2008 Share Posted May 6, 2008 Don't know right I'm or not, but this is new Utility.ClampToByte() code: #region UICode int Amount1 = 0; // [0,255] Transparensy #endregion void Render(Surface dst, Surface src, Rectangle rect) { PdnRegion selectionRegion = EnvironmentParameters.GetSelection(src.Bounds); ColorBgra CurrentPixel; int R, G, B; byte A; for(int y = rect.Top; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) { CurrentPixel = src[x,y]; R = (int)CurrentPixel.R; G = (int)CurrentPixel.G; B = (int)CurrentPixel.B; A = (byte)(int)(Amount1 - CurrentPixel.A); dst[x,y] = ColorBgra.FromBgra(Utility.ClampToByte(,Utility.ClampToByte(G),Utility.ClampToByte(R),Utility.ClampToByte(A)); } } } Quote Link to comment Share on other sites More sharing options...
Mike Ryan Posted May 6, 2008 Author Share Posted May 6, 2008 I will begin working on Alpha Works as soon as I get some more testing in with IndirectUI. Quote Link to comment Share on other sites More sharing options...
Mike Ryan Posted May 9, 2008 Author Share Posted May 9, 2008 Alright, Alpha Works is finished but not compiled yet. I need Code Lab to start behaving correctly and I will make the big upload. Quote Link to comment Share on other sites More sharing options...
BoltBait Posted May 10, 2008 Share Posted May 10, 2008 Alright, Alpha Works is finished but not compiled yet. I need Code Lab to start behaving correctly and I will make the big upload. CodeLab is fine. It's your script... Don't use anything but alphanumeric characters in the .cs file name of your effect. CodeLab uses that filename as your namespace... "namespaces" must be alphanumeric without spaces. I have added a note about this to CodeLab's help file. Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
Mike Ryan Posted May 10, 2008 Author Share Posted May 10, 2008 Great! Expect an update sometime tommorow (hopefully) Quote 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.