System.Drawing.Graphics.DrawBezier C# (CSharp) Method

DrawBezier() public method

public DrawBezier ( Pen pen, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4 ) : void
pen Pen
x1 float
y1 float
x2 float
y2 float
x3 float
y3 float
x4 float
y4 float
return void
        public void DrawBezier(Pen pen, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)
        {
            if (pen == null)
                throw new ArgumentNullException ("pen");
            MoveTo (x1, y1);
            CurveTo (x2, y2, x3, y3, x4, y4);
            StrokePen (pen);
        }

Same methods

Graphics::DrawBezier ( Pen pen, Point pt1, Point pt2, Point pt3, Point pt4 ) : void
Graphics::DrawBezier ( Pen pen, PointF pt1, PointF pt2, PointF pt3, PointF pt4 ) : void

Usage Example

Example #1
0
 public override void Draw(System.Drawing.Graphics g)
 {
     g.DrawArc(pen, Shape_Point.X, Shape_Point.Y, Width / 2, Height / 2, StartAngle, SweepAngle);
     g.DrawArc(pen, (MouseDown_Point.X + MouseUp_Point.X) / 2, Shape_Point.Y, Width / 2, Height / 2, StartAngle, SweepAngle);
     g.DrawBezier(pen, new Point(Shape_Point.X, Shape_Point.Y + Height / 4), new Point(Shape_Point.X + Width / 10, Shape_Point.Y + Height / 4 * 3), new Point(Shape_Point.X + Width / 10 * 4, Shape_Point.Y + Height), new Point(Width / 2 + Shape_Point.X, Shape_Point.Y + Height));
     g.DrawBezier(pen, new Point(Shape_Point.X + Width, Shape_Point.Y + Height / 4), new Point(Shape_Point.X + Width - Width / 10, Shape_Point.Y + Height / 4 * 3), new Point(Shape_Point.X + Width - Width / 10 * 4, Shape_Point.Y + Height), new Point(Width / 2 + Shape_Point.X, Shape_Point.Y + Height));
 }
All Usage Examples Of System.Drawing.Graphics::DrawBezier