using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace ww
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Paint(object sender, PaintEventArgs e)
{
Graphics g = e.Graphics;
GraphicsPath gp = new GraphicsPath();
gp.AddLine(20, 25, 55, 66);
gp.AddLine(66, 55, 78, 97);
gp.AddBezier(78, 97, 56, 78, 112, 78, 123, 322);
gp.AddLine(123, 322, 100, 160);
g.DrawPath(Pens.Red, gp);
}
}
}