Color::FromAValues Method

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

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

public:
static Color FromAValues(
	float a, 
	array<float>^ values, 
	Uri^ profileUri
)

Parameters

a
Type: System::Single

The alpha channel for the new color,a value between 0 and 1.

values
Type: array<System::Single>

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

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.

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 FromAValues method to create a Color structure.

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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft