WebForm1.aspx K LINE YISHI GIEVE ME,WebForm1.aspx K LINE YISHI GIEVE ME
using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Drawing.Imaging;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.HtmlControls;using System.IO;
namespace Ktest{ /// /// WebForm1 的摘要说明。 /// public class WebForm1 : System.Web.UI.Page { private void Page_Load(object sender, System.EventArgs e) { //初始化,我这儿瞎填的数,也没做验证,实际数据中最高价一定是四个价格中最高的,最低价也一定是四个价格中最低的. Kbuilder kb=new Kbuilder(); kb.Add(4,5,6,7); kb.Add(4,5,6,7); kb.Add(4,5,6,7); kb.Add(12,2,13,11); kb.Add(9,10,10.5,11.2); kb.Add(4,5,6,7); kb.Add(4,5,6,7); kb.Add(12,2,13,11); kb.Add(9,10,10.5,11.2); kb.Add(4,5,6,7); kb.Add(4,5,6,7); kb.Add(12,2,13,11); kb.Add(9,10,10.5,11.2); kb.Add(4,5,6,7); kb.Add(4,5,6,7); kb.Add(12,2,13,11); kb.Add(9,10,10.5,11.2); kb.Add(4,5,6,7); kb.Add(4,5,6,7); kb.Add(12,2,13,11); kb.Add(9,10,10.5,11.2); kb.Add(4,5,6,7); kb.Add(4,5,6,7); kb.Add(12,2,13,11); kb.Add(4,5,6,7); kb.Add(12,2,13,11); kb.Add(9,10,10.5,11.2); kb.Add(4,5,6,7); kb.Add(4,5,6,7); kb.Add(12,2,13,11); kb.Add(9,14,10.5,11.2); kb.Add(4,5,6,7); kb.Add(9,14,10.5,11.2); kb.Add(9,14,10.5,1100.2);
//输出图像 MemoryStream picStream = new MemoryStream(); kb.GetImage().Save(picStream,ImageFormat.Jpeg); Response.ContentType = "image/jpeg"; Response.BinaryWrite(picStream.ToArray()); Response.End(); }
#region Web 窗体设计器生成的代码 override protected void OnInit(EventArgs e) { // // CODEGEN: 该调用是 ASP.NET Web 窗体设计器所必需的。 // InitializeComponent(); base.OnInit(e); } /// /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// private void InitializeComponent() { this.Load += new System.EventHandler(this.Page_Load); } #endregion }}