Edit

Share via


ID2D1SimplifiedGeometrySink::AddLines method (d2d1.h)

Creates a sequence of lines using the specified points and adds them to the geometry sink.

Syntax

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

Parameters

[in] points

Type: const D2D1_POINT_2F*

A pointer to an array of one or more points that describe the lines to draw. A line is drawn from the geometry sink's current point (the end point of the last segment drawn or the ___location specified by BeginFigure) to the first point in the array. if the array contains additional points, a line is drawn from the first point to the second point in the array, from the second point to the third point, and so on.

pointsCount

Type: UINT

The number of points in the points array.

Return value

None

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header d2d1.h
Library D2d1.lib
DLL D2d1.dll

See also

ID2D1SimplifiedGeometrySink