Tark,
You will want to create a new Bitmap class instance with the dimensions
that you want to resave the image to. Then, you will call the static
FromImage method on the Graphics class to get the Graphics instance for the
new image. Once you have that, you can call the DrawImage method on the
Graphics instance, passing the original image (and the new image
dimensions).
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Tark Siala" <ta*******@icc-libya.comwrote in message
news:%2******************@TK2MSFTNGP06.phx.gbl...
hi
i'm wprking with C# 2005 + SP1, and i want load image from image file, and
then resize it (like from 800X600 Pixel to 640X480 Pixel), and then save
it in another image file, i want do that for resize many images to publish
it on the internet, the picture box can load image and resize it on the
screen, but can't save it with new dimension.
can you help me?
-----------
Tarek M. Siala
Software Developer
http://tarksiala.blogspot.com