VoidWhisperer
Members-
Posts
43 -
Joined
-
Last visited
Everything posted by VoidWhisperer
-
Slowly making something go transparent in PDN?
VoidWhisperer replied to VoidWhisperer's topic in Plugin Developer's Central
That is pretty much what I am trying to do. -
Slowly making something go transparent in PDN?
VoidWhisperer replied to VoidWhisperer's topic in Plugin Developer's Central
Oops -_-' I guess i need to learn to put images on the right way, anyways: this is an image of what's happening: -
#region UICode 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 runs=255; int num = 5; #endregion void Render(Surface dst, Surface src, Rectangle rect) { // 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++) { 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; if(CurrentPixel.R != 255 && CurrentPixel.G != 255 && CurrentPixel.B != 255 || CurrentPixel.A > 0){ CurrentPixel.A = (byte)x; runs= runs - 1; dst[x,y] = CurrentPixel; } } } } I'm trying to write something to make the picture go slowly transparent, and i'm kinda of new to PDN Plugins So, could someone help me fix this? A picture is below: That, is what is happening ._.
-
Is there anyway I can see the source code of some of the effects already in paint.net when you first get it =D?
-
I'm using codelab and need help...
VoidWhisperer replied to VoidWhisperer's topic in Plugin Developer's Central
THANKS BOLT! =) -
I'm using codelab and need help...
VoidWhisperer replied to VoidWhisperer's topic in Plugin Developer's Central
The thing I don't understand: They are bytes already... -
I'm using codelab and need help...
VoidWhisperer replied to VoidWhisperer's topic in Plugin Developer's Central
Error at line 125: Cannot implicitly convert type 'int' to 'byte'. An explicit conversion exists (are you missing a cast?) (CSO266) Thats one of the 3 (They are all the same) -
I'm using codelab and need help...
VoidWhisperer replied to VoidWhisperer's topic in Plugin Developer's Central
I really want to fix this <_> -
I'm using codelab and need help...
VoidWhisperer replied to VoidWhisperer's topic in Plugin Developer's Central
Yes. -
I'm using codelab and need help...
VoidWhisperer replied to VoidWhisperer's topic in Plugin Developer's Central
I'm using XP. -
I'm using codelab and need help...
VoidWhisperer replied to VoidWhisperer's topic in Plugin Developer's Central
It will build, But when I try to save it as a DLL, I get the errors. -
I'm using codelab and need help...
VoidWhisperer replied to VoidWhisperer's topic in Plugin Developer's Central
#region UICode byte Amount1=0; //[0,100]Slider 1 Description byte Amount2=0; //[0,100]Slider 2 Description byte Amount3=0; //[0,100]Slider 3 Description #endregion void Render(Surface dst, Surface src, Rectangle rect) { // 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++) { CurrentPixel = src[x,y]; // TODO: Add pixel processing code here // Access RGBA values this way, for example: CurrentPixel.R = Amount1; CurrentPixel.G = Amount2; CurrentPixel.B = Amount3; CurrentPixel.A = PrimaryColor.A; dst[x,y] = CurrentPixel; } } } still giving me that same error. -
This is my script: #region UICode byte Amount1=0; //[0,100]Slider 1 Description byte Amount2=0; //[0,100]Slider 2 Description byte Amount3=0; //[0,100]Slider 3 Description #endregion void Render(Surface dst, Surface src, Rectangle rect) { // 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++) { CurrentPixel = src[x,y]; // TODO: Add pixel processing code here // Access RGBA values this way, for example: CurrentPixel.R = (byte)Amount1; CurrentPixel.G = (byte)Amount2; CurrentPixel.B = (byte)Amount3; CurrentPixel.A = (byte)PrimaryColor.A; dst[x,y] = CurrentPixel; } } } I keep getting a error saying it can't change an int into a byte, but It shouldn't have to.. I need help!
-
How do I make 3D text?
VoidWhisperer replied to VoidWhisperer's topic in Paint.NET Discussion and Questions
Wow..... 20 views and no responses?! -
How do I make 3D text?
VoidWhisperer replied to VoidWhisperer's topic in Paint.NET Discussion and Questions
Wow..... 20 views and no responses?! -
How do I make 3D text?
VoidWhisperer replied to VoidWhisperer's topic in Paint.NET Discussion and Questions
Wow..... 20 views and no responses?! -
How do I make 3D text?
VoidWhisperer replied to VoidWhisperer's topic in Paint.NET Discussion and Questions
Wow..... 20 views and no responses?! -
How do I make 3D text?
VoidWhisperer replied to VoidWhisperer's topic in Paint.NET Discussion and Questions
I'm new, and I found a tutorial on it, but I don't really understand the tutorial I found. :? Can someone please explain to me how to make 3D text? (Thanks ahead of time.) -
I'm new, and I found a tutorial on it, but I don't really understand the tutorial I found. :? Can someone please explain to me how to make 3D text? (Thanks ahead of time.)