using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Drawing.Imaging; using System.Drawing.Drawing2D; using System.Web; using System.Web.SessionState; using System.Web.ui; use system.web.ui.webcontrols; using system.web.ui.htmlcontrols;
Namespace azhou88gupiao {///
Bitmap runk1 = new bitmap (400, 400); graphics g = graphics. FromImage (runk1); font "is a string font," Font Axesfont = New Font ("Arial, 10); brush" is defined brush, behind The two parameters are the position coordinates of the string. Brush BlackBrush = new solidbrush (color. Red); definition color pen redpen = new Pen (color. Red, 1); pen blackpen = new pen (color. Blue, 2);
g. FillRectangle (New Solidbrush (Color. Lightgreen), 0, 0, 400, 400); g. DrawString ("Writing text above, huh, 呵", Axesfont, BlackBrush, 90, 20); Define 3 Line PUBLIC Void Drawlines (Pen Pen, Point [] Points;
g. DrawLine (Blackpen, 0, 2, 210, 250); g. Drawline (Blackpen, 210, 250, 310, 50); g. Drawline (Redpen, 310, 50, 210, 350); // "JPEG "Save this image object in the format, displayed in the client Round1. Save (response. Outstream, imageformat. Jpeg);} #Region Web Form Designer Generated Code Override Protected Void OnInit (Eventargs E) {//// Codegen : This call is necessary for the ASP.NET Web Form Designer. // InitializeComponent (); base.onit (e);} ///
} #Endregion}}}