Dynamic Graphics

GMMorris

Regular
Joined
Feb 28, 2004
Messages
61
Hi,

I have recently migrated from windows forms to web forms, even though I'm I'm most definatly no new to web design and development.

My question is so- Is there a way for me to generate dynamic graphics on the server (or any other way) in an ASP.Net application?

I mean in WinForms I had GDI+, with which I could dynamicaly draw things. Is there an equivilent in Web?
 
You can use GDI+ in web apps too. Simply create a new bitmap, draw whatever you want to on it and save it to the outputstream.
Visual Basic:
 'create bitmap.... and do whatever you want
 bmap.Save(Response.OutputStream, Imaging.ImageFormat.Jpeg)
 
You dont have to save it to the stream, what I normally do is store the file to a temp directory within the web application and assign the resulting value to an Image or ImageButton control.
 
Back
Top