maxpic55 Posted February 18, 2003 Posted February 18, 2003 Hello, How can I do? I want to put a color with a random function like as: Dim pens As New Pen(Color.Violet) Dim a As Random pens.Color=RGB(a.Next(1,255),a.Next(1,255),a.Next(1,255)) It's possible to convert this value integer in System.Drawing.Color? Thank you. Maxpic55 Quote
*Experts* Volte Posted February 18, 2003 *Experts* Posted February 18, 2003 Use Color.FromARGB(a.Next(1,255), a.Next(1,255), a.Next(1,255)) and it will return a Drawing.Color object. 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.