Im creating a user control to represent my logo
im using the Graphics.DrawString method to draw some text on the logo.
I have a System.Drawing.Brush declared to contain the color of the string to draw.
Id like this Brush object to cycle through the different colors sequentially back and forth.
Can someone post a block of code that would demonstrate this technique.
I have provided a method here with an example
thanks
brandon
im using the Graphics.DrawString method to draw some text on the logo.
I have a System.Drawing.Brush declared to contain the color of the string to draw.
Id like this Brush object to cycle through the different colors sequentially back and forth.
Can someone post a block of code that would demonstrate this technique.
I have provided a method here with an example
C#:
private Brush _brush = Color.Blue;
private void ChangeColr()
{
_brush = what? //make the brushs color just slightly different
}
thanks
brandon