最近有个项目的一个功能要用到在线绘图的功能,找了半天google找不到相关的资料,不知道哪位高手可以拔刀相注,给点这方面的材料,思路,例子,成品,blog就是实现在线画图功能。小生在此谢谢大家了。。

解决方案 »

  1.   

    Response
    ContentType
    one image type!
    然后可以用.net相关的类 Or gdi pluscodeproject.com
      

  2.   

    http://www.microsoft.com/china/msdn/events/webcasts/shared/webcast/episode.aspx?newsID=1242241这是一个视频教程含代码,里边有你想要的
      

  3.   

    private void Page_Load(object sender, System.EventArgs e)
    {
    Bitmap b = new Bitmap(600,600);
    Graphics g = Graphics.FromImage(b);//GDI+中最重要的类
    g.Clear(Color.Red);
    Pen p = new Pen(Color.Green,3.0f);//铅笔
    g.DrawLine(p,0,0,600,600);
    g.DrawLine(p,600,0,0,600);
    g.DrawEllipse(p,0,0,100,100);
    SolidBrush sb = new SolidBrush(Color.Blue);//固体刷
    g.FillEllipse(sb,100,100,200,200);
    g.FillRectangle(sb,300,300,100,100);
    Font f = new Font("宋体",40);//字体
    g.DrawString("哈哈,不错!",f,sb,0,300);
    Point[] arrP = new Point[5];//point为基本的点
    arrP[0] = new Point(200,200);
    arrP[1] = new Point(200,400);
    arrP[2] = new Point(500,400);
    arrP[3] = new Point(500,600);
    arrP[4] = new Point(300,600);
    g.DrawPolygon(p,arrP);
    b.Save(Response.OutputStream,ImageFormat.Gif);
      

  4.   

    假如我要用鼠标在 图片上画画,而且是要在web上实现,大家有什么方法吗