Windows Dev Center

The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Color.FromScRgb Method (Single, Single, Single, Single)


Creates a new Color structure by using the specified ScRGB alpha channel and color channel values.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public static Color FromScRgb(
	float a,
	float r,
	float g,
	float b


Type: System.Single

The ScRGB alpha channel, ScA, of the new color.

Type: System.Single

The ScRGB red channel, ScR, of the new color.

Type: System.Single

The ScRGB green channel, ScG, of the new color.

Type: System.Single

The ScRGB blue channel, ScB, of the new color.

Return Value

Type: System.Windows.Media.Color

A Color structure with the specified values.

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.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft