Set A Transparent Color
Posted
by Ngu Soon Hui
on Stack Overflow
See other posts from Stack Overflow
or by Ngu Soon Hui
Published on 2010-06-11T07:15:48Z
Indexed on
2010/06/11
7:22 UTC
Read the original article
Hit count: 254
I have a Color
, and I have a method that should return a more "transparent" version of that color. I tried the following method:
public static Color SetTransparency(int A, Color color)
{
return Color.FromArgb(A, Color.R, Color.G, Color.B);
}
but for some reason, no matter what the A
is, the returned Color
's transparency level just won't change.
Any idea?
© Stack Overflow or respective owner