imports system.draw2d
define g and pic
use g object draw in pic

解决方案 »

  1.   

    ASP.NET+C#画饼图  
    <%@ Page Language="C#" ContentType="image/jpeg" %> 
    <%@ Import namespace="System.Drawing"%> 
    <html> 
    <head> 
    <script language="C#" runat="server"> 
    void Page_Load(object sender,EventArgs e) 

    Bitmap image=new Bitmap(350,200); 
    Graphics g=Graphics.FromImage(image); 
    g.Clear(Color.White); 
    Rectangle outline=new Rectangle(10,5,300,100); 
    g.DrawEllipse(new Pen(Color.White,8.0f),outline); 
    g.FillPie(new SolidBrush(Color.Red),outline,-20f,120f); 
    //这些角度的大小可以由数据库中的对比数据计算决定 
    g.FillPie(new SolidBrush(Color.Black),outline,100f,120f); 
    g.FillPie(new SolidBrush(Color.Blue),outline,220f,100f); 
    g.FillPie(new SolidBrush(Color.Green),outline,320f,40f); 
    image.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg); 

    </script> 
    </head> 
    <body> 
    <form runat="server"> </form> 
    </body> 
    </html> 
     
     
      

  2.   

    http://xml.sz.luohuedu.net/xml/ShowDetail.asp?id=ADB6D011-A4AD-43A0-A8BF-3CED872A7A95
    http://xml.sz.luohuedu.net/xml/ShowDetail.asp?id=221BC601-1A1B-4E1F-883D-04B043659703
      

  3.   

    俺们就是直接用system.drawing 直接画的