Ndshacker
-
Posts
10 -
Joined
-
Last visited
Posts posted by Ndshacker
-
-
:? when I said this:
ColorBgra CurrentPixel; selecting the pixel, using C if im not mistakenI meant this whole part
ColorBgra CurrentPixel; selecting the pixel, using C if im not mistakenfor(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))
{
I think im still wrong, but just wanted to clarify that. Im hoping we learn this kind of stuff next year in Grade 10 (or at least something applicable)
-
Thanks for telling me. Also the reason I posted in here was because in other forums I've been to Offtopic is not where they put an introductory thread. So I wasn't sure, and thought General Discussion would be best.
And thanks for the heads up on rule #6
-
Thanks for telling me. Also the reason I posted in here was because in other forums I've been to Offtopic is not where they put an introductory thread. So I wasn't sure, and thought General Discussion would be best.
And thanks for the heads up on rule #6
-
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
-
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
-
Paint.Net hits easy down Adobe photoshop
QFT, this is so obvious!
-
Paint.Net hits easy down Adobe photoshop
QFT, this is so obvious!
-
Hi, I've been coming here for a long time to use the marvelous tutorials and plugins offered on this site. Yesterday I was grabbing a particularly great plugin when I thought "I really need to say thank you for this" So to all who dedicate their time to helping us other folk, thank you!
Now that the sappy introduction is done ^^ Im hoping to be a great part of this forum.
-
Hi, I've been coming here for a long time to use the marvelous tutorials and plugins offered on this site. Yesterday I was grabbing a particularly great plugin when I thought "I really need to say thank you for this" So to all who dedicate their time to helping us other folk, thank you!
Now that the sappy introduction is done ^^ Im hoping to be a great part of this forum.
How do you make a plugin?
in Plugin Developer's Central
Posted
:? when I said this:
I meant this whole part
I think im still wrong, but just wanted to clarify that. Im hoping we learn this kind of stuff next year in Grade 10 (or at least something applicable)