共用方式為


CD2DGeometrySink::AddLines

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

void AddLines(
   const CArray<CD2DPointF,
   CD2DPointF>& points
);

Parameters

  • points
    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. An array of a sequence of the end points of the lines to draw.

Requirements

Header: afxrendertarget.h

See Also

Reference

CD2DGeometrySink Class