ID2D1SimplifiedGeometrySink::AddLines 方法 (d2d1.h)

使用指定的點建立線條序列,並將其新增至幾何接收器。

語法

void AddLines(
  [in] const D2D1_POINT_2F *points,
       UINT32              pointsCount
);

參數

[in] points

類型:const D2D1_POINT_2F*

一或多個點陣列的指標,描述要繪製的線條。 線條是從幾何接收的目前點繪製, (最後一個線段的結束點,或是 BeginFigure 所指定的位置) 到陣列中的第一個點。 如果陣列包含其他點,則會從第一個點繪製到陣列中的第二個點、從第二個點到第三個點等。

pointsCount

類型: UINT

陣列中的點數。

傳回值

規格需求

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

另請參閱

ID2D1SimplifiedGeometrySink