int b=(int)(255*myColor.GetBrightness());
Color desaturatedColor=Color.FromArgb(b,b,b);
--
Bob Powell [MVP]
Visual C#, System.Drawing
The Image Transition Library wraps up and LED style instrumentation is
available in the June of Well Formed for C# or VB programmers http://www.bobpowell.net/currentissue.htm
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.