Devin

Hi there,

I'm wondering what the best way is to resize an Image or Bitmap I'm currently thinking about creating a new image and creating a graphics object on it and drawing the image from the old surface to the new surface using the DrawImage method of the Graphics class. Is this OK or is there a better way

Thanks in advance,

-Devin



Re: .NET Base Class Library Best way to resize an image?

nobugz

Yes, that's the way to do it.





Re: .NET Base Class Library Best way to resize an image?

JohnWein

This does the same thing with fewer words:

ResizedBitmap = new Bitmap(OriginalBitmap, NewWidth, NewHeight)