posts - 31, comments - 85, trackbacks - 0

My Links

News

Archives

Post Categories

April 2009 Entries

Compress Image files using C#
Found a nice post by Mr.Polite for compressing JPEG images. Here's the link: http://www.vbforums.com/sho... Posting the code here for my reference in case the original post gets deleted or changed. Image myImage = //... load the image somehow // Save the image with a quality of 50% SaveJpeg (destImagePath, myImage, 50); //add this! using System.Drawing.Imaging; /// <summary> /// Saves an image as a jpeg image, with the given quality /// </summary> /// <param name="path">Path...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Wednesday, April 29, 2009 8:15 AM | Feedback (5) | Filed Under [ C# ASP.NET ]

Powered by: