Resizing an image

  • Thread starter Thread starter Xarky
  • Start date Start date
X

Xarky

Hi,
I am loading a bmp image, and showing it in a picture box, but the
image is big and is not fitting in the picture box. Is there a way to
change the size of the image by coding.


Thanks
 
Xarky said:
Hi,
I am loading a bmp image, and showing it in a picture box, but the
image is big and is not fitting in the picture box. Is there a way to
change the size of the image by coding.


Thanks

Bitmap has a constructor that accepts an other Bitmap (or Image)
plus a Size structure. This resizes that original bitmap.

Hans Kesting
 
Thanks, problem solved.

Hans Kesting said:
Bitmap has a constructor that accepts an other Bitmap (or Image)
plus a Size structure. This resizes that original bitmap.

Hans Kesting
 

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