GraphicsPath::AddBezier(constPoint&,constPoint&,constPoint&,constPoint&) 方法 (gdipluspath.h)

GraphicsPath::AddBezier 方法會將 Bézier 曲線新增至此路徑的目前圖形。

語法

Status AddBezier(
  [in, ref] const Point & pt1,
  [in, ref] const Point & pt2,
  [in, ref] const Point & pt3,
  [in, ref] const Point & pt4
);

參數

[in, ref] pt1

類型:const Point

參考開始貝塞爾曲線的點。

[in, ref] pt2

類型:const Point

參考為 Bézier 曲線的第一個控制點。

[in, ref] pt3

類型:const Point

參考為 Bézier 曲線的第二個控制點。

[in, ref] pt4

類型:const Point

參考結束貝塞爾曲線的點。

傳回值

類型:狀態

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

如果方法失敗,它會傳回 Status 列舉的其他元素之一。

要求

要求 價值
最低支援的用戶端 Windows XP、Windows 2000 Professional [僅限傳統型應用程式]
支援的最低伺服器 Windows 2000 Server [僅限傳統型應用程式]
目標平臺 窗戶
標頭 gdipluspath.h (包括 Gdiplus.h)
連結庫 Gdiplus.lib
DLL Gdiplus.dll

另請參閱

AddBezier 方法

AddBeziers 方法

AddCurve 方法

貝塞爾曲線

使用區域 進行裁剪

建構和繪製路徑

建立路徑漸層

繪製貝氏曲線

GraphicsPath

路徑