共用方式為


IDWritePaintReader::GetGradientStops 方法 (dwrite_3.h)

擷取目前繪製專案的漸層停駐點。

語法

HRESULT GetGradientStops(
  UINT32             firstGradientStopIndex,
  UINT32             gradientStopCount,
  D2D1_GRADIENT_STOP *gradientStops
);

參數

firstGradientStopIndex

類型:UINT32

要擷取之第一個漸層停駐點的索引。

gradientStopCount

類型:UINT32

要擷取的漸層停駐點數目。

gradientStops

類型:_Out_writes_(gradientStopCount) D2D1_GRADIENT_STOP *

接收漸層停駐點。

返回值

標準 HRESULT 錯誤碼。

備註

漸層停駐點保證會依位置以遞增順序排列。

需求

要求 價值
最低支援的用戶端 Windows 10 版本 1809(Windows App SDK 1.2 或更新版本)
標題 dwrite_3.h