Agraham
Never meant to steal your property or to try to make it look as if I made it.
As I have only recently started to work with libraries, I can only dream on writing such a library.
I thought I made it clear that it is not my library by adding a post here (not as a new thread) and with this
Quote:
|
The attached modified library
|
I'm sorry that it looked foul to you.
I didn't add the source because I didn't want it to replace your library, just to help seongjin.
Here is the piece of code I added, you can use it or not - as you wish.
Code:
public void GradientCircle( int x, int y, int radius, int startcolor, int endcolor)
{
System.Drawing.SolidBrush brush = new System.Drawing.SolidBrush(Color.FromArgb(endcolor));
Color sc = Color.FromArgb(startcolor);
Color ec = Color.FromArgb(endcolor);
int rc = (sc.R - ec.R)/radius;
int gc = (sc.G - ec.G)/radius;
int bc = (sc.B - ec.B)/radius;
for (int i=radius;i>0;i--)
{
System.Drawing.Rectangle rect = new System.Drawing.Rectangle(x - i, y - i, i * 2, i * 2);
brush.Color = Color.FromArgb( ec.R + rc*i, ec.G + gc*i , ec.B + bc*i);
g.FillEllipse(brush, rect);
}
}