Geeks With Blogs
Mayank Sharma 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 ......

Posted On Wednesday, April 29, 2009 8:15 AM

Copyright © bullpit | Powered by: GeeksWithBlogs.net