I know, CodeLab is very well done, and I like it.
I still don't totally love it yet, as in some stuff is lacking.
I want to debug my plugins, which is impossible to do inside CodeLab.
So, I need help... for starting my own project inside VisualStudio, and using the same template as CodeLab
#region UICode
#endregion
void Render(Surface dst, Surface src, Rectangle rect)
{
// Delete any of these lines you don't need
Rectangle selection = EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt();
int CenterX = ((selection.Right - selection.Left) / 2)+selection.Left;
int CenterY = ((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];
dst[x,y] = CurrentPixel;
}
}
}
}
So... What are the references that I need? (the important ones, because I know I can just select them all)
What are the "using" statements I should put?
Do I have to make a class, namespace and everything?
Any template example would be really appreciated, thanks!