Created
September 29, 2010 18:11
-
-
Save doxavore/603217 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Load the original image from disk | |
using (Image originalImage = Image.FromFile(Server.MapPath("~/App_Data/" + file.FileName))) | |
{ | |
// Apply the queued transformations to the original image | |
using (Image newImage = filters.Apply(originalImage)) | |
{ | |
return File(newImage.ToByteArray(), file.ContentType); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What about
if you just don't like the indentation.