Color.FromRgb Method
Assembly: PresentationCore (in presentationcore.dll)
Parameters
Return Value
The Color structure created from r, g, and b and an alpha component value of 1.The difference between a Color structure created with FromRgb and FromArgb is that FromArgb defines the alpha component while FromRgb uses a default value of 1 for the alpha component.
The alpha channel of a Color structure determines the amount of transparency the Color has. An alpha value of 1 indicates the Color is completely opaque and a value of 0 indicates the Color is completely transparent.
The sRGB components (A, R, G, B) and the ScRGB components (ScA, ScR, ScG, ScB) of the Color structure are synchronized properties. For example, when R, the sRGB red component, is modified the ScRGB red component, ScR, is transformed to the equivalent value.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.