[]
Draws a line between the specified points.
public void DrawLine(Point2F point0, Point2F point1, Brush brush)
Type | Name | Description |
---|---|---|
Point2F | point0 | The start point of the line, in device-independent pixels. |
Point2F | point1 | The end point of the line, in device-independent pixels. |
Brush | brush | The brush used to paint the line's stroke. |
void ID2D1RenderTarget::DrawLine([In] D2D_POINT_2F point0,[In] D2D_POINT_2F point1,[In] ID2D1Brush* brush,[In] float strokeWidth,[In, Optional] ID2D1StrokeStyle* strokeStyle)
public void DrawLine(Point2F point0, Point2F point1, Brush brush, float strokeWidth, StrokeStyle strokeStyle = null)
Type | Name | Description |
---|---|---|
Point2F | point0 | |
Point2F | point1 | |
Brush | brush | |
float | strokeWidth | |
StrokeStyle | strokeStyle |