Image Processing

The last thing I want to do in this chapter is introduce you to image processing in ASP.NET. I have created an application that loads in an image, then darkens the image, then saves it out to disk, and then displays it in the HTML page. I do all this in the Page_Load() method so that the darkened image is prepared before the HTML code is actually sent back to the client. You can see the application running in Figure 16.5. There is not actually any interaction with a user; the page simply loads, does the conversion, and displays both images.

Figure 16.5. You can see that the second image has been darkened.

Look at the code in ...

Get Special Edition Using® Microsoft® ASP.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.