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

DrawBezier() public method

public DrawBezier ( Pen pen, Point pt1, Point pt2, Point pt3, Point pt4 ) : void
pen Pen
pt1 Point
pt2 Point
pt3 Point
pt4 Point
return void
        public void DrawBezier(Pen pen, Point pt1, Point pt2, Point pt3, Point pt4)
        {
            if (pen == null)
                throw new ArgumentNullException ("pen");
            MoveTo (pt1.X, pt1.Y);
            CurveTo (pt2.X, pt2.Y, pt3.X, pt3.Y, pt4.X, pt4.Y);
            StrokePen (pen);
        }

Same methods

Graphics::DrawBezier ( Pen pen, PointF pt1, PointF pt2, PointF pt3, PointF pt4 ) : void
Graphics::DrawBezier ( Pen pen, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4 ) : 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