D
Dan
A simple console application needs to get a number of image files and resize
them as required by some parameters, either keeping or discarding the
original aspect ratio. I can load an image by creating a new Bitmap object
from an image file name, even if this seems to take a relatively long time
(and, more important, spend a lot of memory) for somewhat large images (is
there a more efficient method?); then I calculate the new desired size;
finally, I should resize it and save to a new file. How can I resize this
loaded Bitmap?
e.g.:
Bitmap bmp = new Bitmap("someimage.jpg");
int newWidth = 100, newHeigth = 150;
now how can I resize bmp to newWidth,newHeigth?
Thanks folks!
them as required by some parameters, either keeping or discarding the
original aspect ratio. I can load an image by creating a new Bitmap object
from an image file name, even if this seems to take a relatively long time
(and, more important, spend a lot of memory) for somewhat large images (is
there a more efficient method?); then I calculate the new desired size;
finally, I should resize it and save to a new file. How can I resize this
loaded Bitmap?
e.g.:
Bitmap bmp = new Bitmap("someimage.jpg");
int newWidth = 100, newHeigth = 150;
now how can I resize bmp to newWidth,newHeigth?
Thanks folks!