ID2D1SimplifiedGeometrySink::AddLines method

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

Syntax

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

Parameters

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

This method does not return a value.

Requirements

   
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