An easy way, although may be not very fast if the graphic is huge, is to
load the graphic into a Image Box within the PictureBox. As long as you set
the strech property of the ImageBox to true, changing the size of the
ImageBox will act as a zoom, and changing the position of the ImageBox
within the pictureBox will allow you to show any part of the graphic if it
is too big for the PictureBox.
Another way is to use the PaintPicture Method. Is pretty similar to use some
API calls like StrechBlt and BitBlt but I think could be a better option
when working with PictureBoxes.
----- Original Message -----
From: "Mark Roworth" <mark@d...>
To: "professional vb" <pro_vb@p...>
Sent: Tuesday, January 22, 2002 7:07 AM
Subject: [pro_vb] Graphics in a PictureBox
>
> Hi everyone,
>
> I want to be able to scale the picture shown in a PictureBox so that the
> user can zoom in and out. There aren't any properies on the PictureBox
that
> will do this for me. Does anyone know any API calls that do this kind of
> thing. Cheers,
>
> Mark
>
>
>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com