GraphicsPath::GraphicsPath (constPointF*,constBYTE*,INT,FillMode) 方法 (gdipluspath.h)

根據點陣列、類型陣列和填滿模式,建立 GraphicsPath::GraphicsPath 物件。

語法

void GraphicsPath(
  [in] const PointF *points,
  [in] const BYTE   *types,
  [in] INT          count,
  [in] FillMode     fillMode
);

參數

[in] points

類型: const PointF*

點陣列的指標,指定用來繪製路徑之線條的端點和控制點和 Bezier 曲線。

[in] types

類型: const BYTE*

位元組陣列的指標,該陣列會保存點類型,以及 陣列中每個點的一組旗標。 點類型會儲存在三個最小有效位中,而旗標會儲存在四個最顯著位中。 PathPointType 列舉中會列出可能的點類型和旗標。

[in] count

類型: INT

整數,指定 陣列中的項目數目。 這與 型別 數位中的元素數目相同。

[in] fillMode

類型: FillMode

選擇性。 FillMode 列舉的 元素,指定路徑與本身交集時如何填滿區域。 預設值是 FillModeAlternate

傳回值

規格需求

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

另請參閱

使用區域裁剪

建構和繪製路徑

建立路徑漸層

FillMode

GraphicsPath

GraphicsPath 建構函式

PathData

PathGradientBrush

PathPointType

路徑

PointF