-
May 15th, 2008, 03:17 AM
#1
Compress an Image to a small JPEG
My program uses a lot of pictures (from screendumps) and I need to compress those so that my program uses less memory. Any idea how to do that in C#?
...and justice for all
-
May 15th, 2008, 03:48 AM
#2
Re: Compress an Image to a small JPEG
Have you tried simply saving the image as a JPEG ( from your program ) ¿
Something like :
Code:
Image.Save(ImageName, ImageFormat.Jpeg)
-
May 15th, 2008, 04:12 AM
#3
Re: Compress an Image to a small JPEG
I'm doing just that.
I want something like:
Code:
Image.Save(ImageName, ImageFormat.Jpeg, 10 /*compression*/)
...and justice for all
-
May 15th, 2008, 04:47 AM
#4
Re: Compress an Image to a small JPEG
I thought you have talked about BMP files, because of your mentioning of screenshots
Jpegs are usually small, but what you can do is to follow the advice given here :
http://msdn.microsoft.com/en-us/library/bb882583.aspx
-
May 15th, 2008, 11:36 AM
#5
Re: Compress an Image to a small JPEG
...and justice for all
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|