Click here to Skip to main content
15,923,087 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
At runtime i wanted to reduce the size (physical size) of the image, lets say the image size if 1 MB and i wanted to convert it into 40 KB or 50 KB,

Is there any way to do this, i have tried using Bitmap but it instead of decreasing the size the size increases.

Is there any third party dll i can use

i am doing this is a windows app with C#.

Use a library like this :[^]
Share this answer
CPallini 30-Nov-11 5:09am    
My 5.
There's no magic for this: generally speaking you may reduce image size either reducing its dimensions (scaling it down) or its color depth (a nice program to perform such operations without loosing too much quality is IrfanView[^]). You may also use a compressed image format, lossless or lossy, depending on your needs.
Share this answer
Mehdi Gholam 30-Nov-11 5:05am    
My personal favourite is FastStone Image Viewer, the OP wanted a c# way though, my 5 anyway!
CPallini 30-Nov-11 5:09am    
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900