Based on the amount of feedback we received on our
Name Tag sample, it seems that a lot of you are
interested in manipulating images from an ASP.NET page.
While images really aren't our specialty, that's never stopped
us before... which brings us to the sample code at hand.
This sample walks you through how to load an image from the file system,
perform some simple image manipulation on it using ASP.NET's graphics capabilities,
and return the resulting image to the browser. For illustration, three different
transformations are applied to the image. The first is that the image is flipped so that
it appears as a mirror image of the original. The second swaps all the white
pixels for red ones. The third reduces the red component of the image giving it a
nice blue-green tint.
There's obviously a lot more you could do to the image, but the important thing here is
to get comfortable working with graphics and get something simple working that you can
then use as a starting point for more advanced scripts.
The image being used is one from our old Photo Gallery sample.
I've simply renamed it for use here.