Skip to content

Instantly share code, notes, and snippets.

@shinyzhu
Created August 11, 2010 14:59
Show Gist options
  • Save shinyzhu/519107 to your computer and use it in GitHub Desktop.
Save shinyzhu/519107 to your computer and use it in GitHub Desktop.
//Save 100 quality JPEG image in C#
var combinedImage = ImageCombiner.Combine(16, images);
var encoder = ImageCodecInfo.GetImageEncoders().FirstOrDefault(e => e.MimeType == "image/jpeg");
var encoderParams = new EncoderParameters();
encoderParams.Param[0] = new EncoderParameter(System.Drawing.Imaging.Encoder.Quality, 100L);
combinedImage.Save("wall_big.jpg", encoder, encoderParams);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment