Saving an image from a picturebox

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
 
C

Cor Ligthert[MVP]

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
 

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