Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

Latly it would seem as though I'm don't abnegate from anything... except women. :( :)
  • *Experts*
Posted

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.

'create bitmap.... and do whatever you want
bmap.Save(Response.OutputStream, Imaging.ImageFormat.Jpeg)

Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...