11.10. Graphics in ASP.NET applications

So far we have seen how to use classes defined in the System.Drawing namespace to draw graphics in Windows applications. In this section, we will learn how to perform graphics manipulations in web applications built with Microsoft ASP.NET technology.

When dealing with graphics in ASP.NET applications, we synthesize off-screen images on the server using the drawing code seen so far and send them to the client. This means that we have two options – to store or not to store our dynamically created images. If we decide to store them, we need to create a temporary file on a per session basis and implement the code that deletes it when the session ends. Once our graphics are stored in the file, we can specify ...

Get A Programmer's Guide to .NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.