Changing brush color

SamuraiJenn

New member
Joined
Feb 16, 2005
Messages
3
Hi!

I have a program in Visual C++ .net that fills up a triangle with ellipses. I need to be able to change the colors of each ellipse within a loop, calculating different RGB values each time. Any idea on how I can change the brush color using the new RGB values each time? Thanks!!

Jenn
 
Im not fluent in C++, but (in VB.Net) you would just redefine the brush in your loop:

myBrush = New SolidBrush(Color.FromArgb(1, 2, 3))
 
DiverDan said:
Im not fluent in C++, but (in VB.Net) you would just redefine the brush in your loop:

myBrush = New SolidBrush(Color.FromArgb(1, 2, 3))


Thanks! I actually finally figured it out shortly after posting this and its very similar to what you put above. Thanks for responding though!! :D
 
Back
Top