Someone asked me to post some code to resize an image. Assuming you know how to load one into a Bitmap, the following method will do it for you.
[UPDATE 2003-05-30 10:27PM] Jeff Lewis correctly pointed out that I forgot a couple of Dispose() calls. Oops. I have corrected the code below. Thanks Jeff.
[UPDATE 2004-08-10] Oops. Still not quite right. It is fixed now. But remember, the caller needs to Dispose() the returned Bitmap.
1 2 3 4 5 6 7