DisplayInformation.GetColorProfile Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for