LinearGradientBrushProperties 函式 (d2d1helper.h)

建立 D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES 結構。

語法

D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES LinearGradientBrushProperties(
  [in, ref] const D2D1_POINT_2F & startPoint,
  [in, ref] const D2D1_POINT_2F & endPoint
);

參數

[in, ref] startPoint

類型:const D2D1_POINT_2F

漸層座標軸之筆刷座標空間中的起點。

[in, ref] endPoint

類型:const D2D1_POINT_2F

漸層座標軸的筆刷座標空間中的終點。

傳回值

類型: D2D1_LINEAR_GRADIENT_BRUSH_PROPERTIES

結構,包含 ID2D1LinearGradientBrush之漸層軸的起點和終點。

規格需求

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