-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: Rohit_BD
Message 4 in Discussion
Hi, This is a small code snippet to create graphs (rather images) on the fly:
private void DrawGraph()
{
Bitmap objBMP;
Graphics g;
Point[] p;
//Create the bitmap object to manipulate images
objBMP = new Bitmap(400, 400);
//Create the graphics object to draw into the bitmap
g = Graphics.FromImage(objBMP);
//Create the line chart (your database related logic will go here)
p = new Point[4];
p[0] = new Point(20, 60);
p[1] = new Point(30, 20);
p[2] = new Point(40, 80);
p[3] = new Point(60, 30);
//Draw the lines or graph
g.DrawLines(new Pen(Color.Red, 2), p);
Response.ContentType = "image/gif";
objBMP.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Gif);
}
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]