Created
June 4, 2014 16:14
-
-
Save mxmissile/d173d0bc09ee0ce1353e 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
using (var imageFactory = new ImageFactory()) | |
{ | |
var layer = new ResizeLayer(new Size(800, 500), null, ResizeMode.Stretch); | |
imageFactory.Load(ms) | |
.Resize(layer) | |
.Format(ImageFormat.Jpeg) | |
.Quality(90) | |
.Save(path); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment