Graphics.DrawBezier

DrawBezier(Pen, float, float, float, float, float, float, float, float)

Draws a Bézier spline defined by four ordered pairs of coordinates that represent points.

public void DrawBezier(Pen pen, float x1, float y1, float x2, float y2, float x3, float y3, 
    float x4, float y4)
ParameterTypeDescription
penPenPen that determines the color, width, and style of the curve.
x1SingleThe x-coordinate of the starting point of the curve.
y1SingleThe y-coordinate of the starting point of the curve.
x2SingleThe x-coordinate of the first control point of the curve.
y2SingleThe y-coordinate of the first control point of the curve.
x3SingleThe x-coordinate of the second control point of the curve.
y3SingleThe y-coordinate of the second control point of the curve.
x4SingleThe x-coordinate of the ending point of the curve.
y4SingleThe y-coordinate of the ending point of the curve.

Exceptions

exceptioncondition
ArgumentNullExceptionpen is null.

See Also


DrawBezier(Pen, PointF, PointF, PointF, PointF)

Draws a Bézier spline defined by four PointF structures.

public void DrawBezier(Pen pen, PointF pt1, PointF pt2, PointF pt3, PointF pt4)
ParameterTypeDescription
penPenPen that determines the color, width, and style of the curve.
pt1PointFPointF structure that represents the starting point of the curve.
pt2PointFPointF structure that represents the first control point for the curve.
pt3PointFPointF structure that represents the second control point for the curve.
pt4PointFPointF structure that represents the ending point of the curve.

Exceptions

exceptioncondition
ArgumentNullExceptionpen is null.

See Also


DrawBezier(Pen, Point, Point, Point, Point)

Draws a Bézier spline defined by four Point structures.

public void DrawBezier(Pen pen, Point pt1, Point pt2, Point pt3, Point pt4)
ParameterTypeDescription
penPenPen structure that determines the color, width, and style of the curve.
pt1PointPoint structure that represents the starting point of the curve.
pt2PointPoint structure that represents the first control point for the curve.
pt3PointPoint structure that represents the second control point for the curve.
pt4PointPoint structure that represents the ending point of the curve.

Exceptions

exceptioncondition
ArgumentNullExceptionpen is null.

See Also