Information
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

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)

static member FromScRgb : 
        a:float32 * 
        r:float32 * 
        g:float32 * 
        b:float32 -> Color

Parameters

a
Type: System.Single

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

r
Type: System.Single

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

g
Type: System.Single

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

b
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.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft