共用方式為


PathGradientBrush::P athGradientBrush (constPoint*,INT,WrapMode) 方法 (gdipluspath.h)

根據點陣列建立 PathGradientBrush::P athGradientBrush 物件。 初始化路徑漸層筆刷的包裝模式。

語法

void PathGradientBrush(
  [in] const Point *points,
  [in] INT         count,
  [in] WrapMode    wrapMode
);

參數

[in] points

類型: const Point*

指定路徑漸層筆刷界限路徑之點數位的指標。

[in] count

類型: INT

指定 陣列中項目數的整數。

[in] wrapMode

類型: WrapMode

選擇性。 WrapMode 列舉的 元素,指定如何使用路徑漸層筆刷繪製的區域會並排顯示。 預設值為 WrapModeClamp。

傳回值

規格需求

需求
最低支援的用戶端 Windows XP、Windows 2000 Professional [僅限桌面應用程式]
最低支援的伺服器 Windows 2000 Server [僅限桌面應用程式]
目標平台 Windows
標頭 gdipluspath.h (包含 Gdiplus.h)
程式庫 Gdiplus.lib
Dll Gdiplus.dll

另請參閱

筆刷和填滿的圖形

建立路徑漸層

使用色彩漸層填滿圖形

GraphicsPath

LinearGradientBrush \(英文\)

PathGradientBrush