Saving an image from a picturebox

  • Thread starter Thread starter Bart Steur
  • Start date Start date
B

Bart Steur

Hi,

I'm using VB 2005 EX.

I want to save an image from a picturebox control, but with the dimensions
of the picturebox control.

I have a pb control of 300x300. I load a image into that picturebox with a
size of 1024x1024. The pb sizemode is set to stretch, so the picture is
resized.
Now I use pb.image.save, but it's not 300x300. It's still 1024x1024. What do
I have to do to save the resized image.

Thanks,
Bart
 
Bart,

That depends how you do it, however you have to remove pixels and that will
probably not forever give the same as you think.

However have a look at the drawing class which gives a lot of tools for
that.

Cor
 
Back
Top