Scaling a bitmap in a picturebox


E

Eric

Hi,

I'm writing a program that based on input will create a document. It is
something simulair as a printing example.
In MS Word when you click on the shown document you can zoom in and if you
click again you'll zoom out again.

This is what I would like to do as well.
I draw the document in a bitmap, since all the information is drawn from a
database and on the form it is shown in a picturebox.

So what I'm trying to find out is how I can zoom in a certain factor by
clicking somewhere in the document.
If I use the SCALE method I can zoom in and out but how can I move the
bitmap so that the point clicked on is shown in the center of the
picturebox.

Please give me some directions on how to do this?

thanks,
Eric
 
Ad

Advertisements

B

Bob Powell [MVP]


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