Jon
Mon Oct 17 15:37:10 CDT 2005
Lionel <Lionel@discussions.microsoft.com> wrote:
> Hello all,
> not sure if this is the correct forum for this, but anyway - how do I alter
> the alpha channel of one of the System Colors? For example, if I want
> System.Drawing.Color.Blue, but with an alpha value of 100, how can this be
> done? Thanks in advance!
There's a method in Color for just that kind of purpose:
Color.FromArgb(int, Color)
So in your case, you'd use:
Color myColor = Color.FromArgb(100, Color.Blue);
--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog:
http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too