image resize

D

davemonnerat

i have a jpeg image that i want to resize, but not lose any quality (or
as little as possible). i found a lot of samples out there that resize
an image, but most of them basically kill the quality. my application
will be for photographs; i want to scale an image from, for example,
3008 x 2000 pixels to 750 x 500 and keep it the quality as good as
possible.

the basic logic now is:

create a new bitmap of the appropriate size
create a new graphics object with:
grPhoto.InterpolationMode = InterpolationMode.HighQualityBicubic;
grPhoto.CompositingQuality=CompositingQuality.HighQuality;
call DrawImage to the bitmap.

is there a different way or different options that might produce a
better end image?

thanks in advance.
 
D

davemonnerat

if you look hard enough...

basically, you have to use the encoderparameters deal and set the
quality to whatever you want. i wanted 100; default must be like 60.
 

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

Top