IXpsOMGradientBrush::GetGradientStops 方法 (xpsobjectmodel.h)
取得 IXpsOMGradientStopCollection 介面的指標,其中包含定義漸層的 IXpsOMGradientStop 介面集合。
語法
HRESULT GetGradientStops(
[out, retval] IXpsOMGradientStopCollection **gradientStops
);
參數
[out, retval] gradientStops
IXpsOMGradientStopCollection介面的指標,其中包含IXpsOMGradientStop介面的集合。
傳回值
方法會傳回 HRESULT。 可能的值包括下列資料表中的值,但不限於這些值。 如需此表格中未列出的 XPS 檔 API 傳回值的相關資訊,請參閱 XPS 檔錯誤。
傳回碼 | 描述 |
---|---|
|
此方法已成功。 |
|
gradientStops 為 Null。 |
備註
由 IXpsOMGradientStop 介面在 XPS OM 中描述的漸層停駐點,用來定義沿著漸層路徑的特定位置的色彩;漸層停駐點之間的色彩會插補。 下圖顯示線性漸層的漸層路徑和漸層停駐點。


規格需求
最低支援的用戶端 | 適用于 Windows Vista 的 Windows 7、Windows Vista SP2 和平臺更新 [傳統型應用程式 |UWP 應用程式] |
最低支援的伺服器 | Windows Server 2008 R2、Windows Server 2008 SP2 和 Platform Update for Windows Server 2008 [傳統型應用程式 |UWP 應用程式] |
目標平台 | Windows |
標頭 | xpsobjectmodel.h |