Share via


Graphics::D rawPath 方法 (gdiplusgraphics.h)

Graphics::D rawPath方法會繪製GraphicsPath物件所定義的線條和曲線序列。

語法

Status DrawPath(
  [in] const Pen          *pen,
  [in] const GraphicsPath *path
);

參數

[in] pen

類型:const Pen*

用來繪製路徑的畫筆指標。

[in] path

類型:const GraphicsPath*

GraphicsPath物件的指標,指定組成路徑的線條和曲線序列。

傳回值

類型: 狀態

如果方法成功,它會傳回 Ok,這是 Status 列舉的元素。

如果方法失敗,它會傳回 Status 列舉的其他其中一個專案。

需求

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

另請參閱

從線條、曲線和形狀建立圖形

FillPie 方法

圖形

GraphicsPath

路徑