SamuraiJenn Posted February 28, 2005 Posted February 28, 2005 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 Quote
*Experts* DiverDan Posted March 2, 2005 *Experts* Posted March 2, 2005 I'm 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)) Quote Member, in good standing, of the elite fraternity of mentally challenged programmers. Dolphins Software
SamuraiJenn Posted March 6, 2005 Author Posted March 6, 2005 I'm 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 it's very similar to what you put above. Thanks for responding though!! :D Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.