DisplayInformation.GetColorProfile Method

Definition

Retrieves the default International Color Consortium (ICC) color profile that is associated with the physical display.

public:
 virtual IRandomAccessStream ^ GetColorProfile() = GetColorProfile;
IRandomAccessStream GetColorProfile();
public IRandomAccessStream GetColorProfile();
function getColorProfile()
Public Function GetColorProfile () As IRandomAccessStream

Returns

The default International Color Consortium (ICC) color profile that is associated with the physical display.

Remarks

The method returns null if no physical display is attached to the computer on which the app is running (for example, if the app is running over Remote Desktop Connection), or if no color profile is associated with the display, or if the profile doesn't match the signature of an ICC color profile.

If there's no valid ICC color profile associated with the display, then your app should handle that by assuming a default color space, such as sRGB.

Applies to