.net专家,用ASP.NET可不可以在网页上画线,就像在画板上画简单的线图,可以的话,具体步骤是怎样,我对.net也不是很懂啊,谢谢帮助。 
 
 

解决方案 »

  1.   

    GDI+导入命名空间:System.Drawing;
    System.Drawing.Imaging;
    System.Drawing.Drawomg2D;
      

  2.   

    要是在基于c#.net的环境下怎么编写?谢谢高手能给与指点。
      

  3.   

    using System.Drawing; 
    using System.Drawing.Imaging; public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Bitmap objBitmap = new Bitmap(200, 200);
            Graphics objGraphics = Graphics.FromImage(objBitmap);
            objGraphics.DrawLine(new Pen(Color.Red), 0, 0, 200, 200);
            objGraphics.DrawString("Hello World!", new Font("Verdana", 12), Brushes.Yellow, 15, 15);
            objBitmap.Save(Response.OutputStream, ImageFormat.Gif);
        }
    }
      

  4.   

    用vml最好不过了,不过只能ie就是了
      

  5.   

    恩 vml 是ie可以
    firefox好象是自己用图片实现的。。