Resize Graphic Images II

  • Thread starter Thread starter Jonathan Wood
  • Start date Start date
J

Jonathan Wood

Okay, I figured out how to resize an image by creating a new bitmap and
specifying the new size when I do.

I don't suppose there's any support for resizing with anti-aliasing so that
I get a smoother image is there? Any tips?

Thanks.

Jonathan
 
Okay, I figured out how to resize an image by creating a new bitmap and
specifying the new size when I do.

I don't suppose there's any support for resizing with anti-aliasing so
that I get a smoother image is there? Any tips?

Yes (ignoring for the moment any semantic difference between
"anti-aliasing" and "interpolation" :) ).

Create a new empty Bitmap rather than using one Bitmap as the source for
another, get a Graphics instance from that Bitmap, set the interpolation
quality you want on the Graphics instance, and use Graphics.DrawImage() to
render the original bitmap into the new Bitmap.

Pete
 
Peter,
Yes (ignoring for the moment any semantic difference between
"anti-aliasing" and "interpolation" :) ).

Thanks for the correction.
Create a new empty Bitmap rather than using one Bitmap as the source for
another, get a Graphics instance from that Bitmap, set the interpolation
quality you want on the Graphics instance, and use Graphics.DrawImage() to
render the original bitmap into the new Bitmap.

I didn't quite follow every bit of that but I'll bet I can figure it out
from your description. And I'm thrilled that this can actually be done!

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top