You could do this by fallowing the next steps:
1.Create in memory a
Bitmap
object;
2.Use this
Bitmap
object to create a
Graphics
object and use it to draw graphics elements; similar like in Windows Forms application;
3.Save the
Bitmap
object into a
Jpeg
file into a web application folder on the web server;
4.Show the image file into the web page.
Here is an
Example[
^].