共用方式為


DisplayInformation.GetColorProfileAsync 方法

定義

以非同步方式擷取與實體顯示器相關聯的預設國際色彩聯盟 (ICC) 色彩設定檔。

public:
 virtual IAsyncOperation<IRandomAccessStream ^> ^ GetColorProfileAsync() = GetColorProfileAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IRandomAccessStream> GetColorProfileAsync();
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IRandomAccessStream> GetColorProfileAsync();
function getColorProfileAsync()
Public Function GetColorProfileAsync () As IAsyncOperation(Of IRandomAccessStream)

傳回

非同步作業物件,其完成時會包含色彩設定檔。

屬性

備註

如果應用程式執行所在的電腦未附加任何實體顯示器 (,非同步作業會傳回 null ,例如,如果應用程式是透過遠端桌面連線) 執行,或是沒有與顯示器相關聯的色彩設定檔,或設定檔不符合 ICC 色彩設定檔的簽章。

如果沒有與顯示器相關聯的有效 ICC 色彩設定檔,則您的應用程式應該假設預設色彩空間,例如 sRGB 來處理該色彩。

適用於