Windows apps
Collapse the table of content
Expand the table of content
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.FromValues Method (Single[], Uri)


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

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

static member FromValues : 
        values:float32[] *
        profileUri:Uri -> Color


Type: System.Single[]

A collection of values that specify the color channels for the new color. These values map to the profileUri.

Type: System.Uri

The International Color Consortium (ICC) or Image Color Management (ICM) color profile for the new color.

Return Value

Type: System.Windows.Media.Color

A Color structure with the specified values and an alpha channel value of 1.

A International Color Consortium (ICC) or Image Color Management (ICM) color profile contains a color system profile for a particular application or device such as a color printer. This profile is matched to a common profile that in turn can be mapped to the individual profiles of other devices. This allows the color system used by one computer device to match the colors from other applications and devices on the same or other computer systems.

The following example shows how to use the FromValues method to create a Color structure.

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

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