Invert Alpha
A Simple Plugin to Invert the Alpha Channel

InvertAlpha.zip 3.91K
2419 downloads
Posted 29 April 2008 - 01:06 AM
Invert Alpha
A Simple Plugin to Invert the Alpha Channel

InvertAlpha.zip 3.91K
2419 downloads

Posted 29 April 2008 - 01:09 AM

[I write plugins and stuff] [Follow my stupid brain on Twitter]
If you like a post, upvote it!
Posted 29 April 2008 - 01:09 AM

Posted 29 April 2008 - 01:10 AM
Don't say that - people will think it's another prank!Also, I want to give my thanks to Pyrochild for helping me out with this basic plugin.

[I write plugins and stuff] [Follow my stupid brain on Twitter]
If you like a post, upvote it!
Posted 29 April 2008 - 01:12 AM

Posted 29 April 2008 - 03:21 PM

Visit-> My Website <-Visit ![]()
Please Call Me Elite Override
The trick to flying is throwing yourself at the floor and missing.
Posted 04 May 2008 - 07:49 PM
Posted 04 May 2008 - 07:52 PM

Posted 04 May 2008 - 09:51 PM
Posted 04 May 2008 - 10:13 PM

Posted 04 May 2008 - 10:34 PM





Posted 05 May 2008 - 01:45 AM

Posted 06 May 2008 - 02:35 PM
Posted 06 May 2008 - 02:41 PM
#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(B),Utility.ClampToByte(G),Utility.ClampToByte®,Utility.ClampToByte(A));
}
}
}
Posted 06 May 2008 - 05:59 PM

Posted 09 May 2008 - 11:19 PM

Posted 10 May 2008 - 09:04 PM
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.Alright, Alpha Works is finished but not compiled yet. I need Code Lab to start behaving correctly and I will make the big upload.




