Creates a new Color structure by using the specified sRGB color channel values.
Assembly: PresentationCore (in PresentationCore.dll)
public: static Color FromRgb( unsigned char r, unsigned char g, unsigned char b )
The FromArgb method allows you to specify the alpha channel; the method uses a default value of 1 for the alpha channel.
The alpha channel of a color determines the amount of transparency of the color. An alpha value of 1 indicates that the color is completely opaque, and a value of 0 indicates that the color is completely transparent.
The sRGB channels (A, R, G, B) and the ScRGB channels (ScA, ScR, ScG, ScB) of the Color structure are synchronized properties. For example, when R, the sRGB red channel, is modified the ScRGB red channel, ScR, is transformed to the equivalent value.