Mo Ade via .NET 247 wrote:
How do I write code to include a zoom
feature in my project so that when my
Vb Form loads an image I can click in
my main menu zoom in or zoom out?
If you are open to using a commercial component
in your VB.NET project, our MetaDraw component
will allow both Zoom and Scroll. You can specify
zoom by some ratio simply by writing
MetaDraw.ZoomFactor = XXXX
( where X is multiple or fraction of original size)
You can also let user create a zoom rectangle
Just set
MetaDraw.EditMode = ED_Zoom
and user can draw zoom rectangle with mouse
and the image will be zoomed to show that area.
You can even allow user to zoom simply by holding
the CNTL key and using the Scroll Wheel of a mouse
MetaDraw.ScrollMouse = ScrollType.WheelZoom
OR MetaDraw.ScrollMouse
Also if you like when you are ready to print you
can zoom the printout, or print only some desired
portion of the image.
Take a look at
www.Bennet-Tec.com and select MetaDraw.
I'd be happy to answer any questions you might
have about this
* * Please include a copy of this message with your reply
Jeff Bennett
Jeff @ Bennet-Tec.Com
* Bennet-Tec Information Systems, Inc
* 50 Jericho Tpk, Jericho, NY 11753
* Phone 516 997 5596, Fax - 5597
* RELIABLE Components Make You Look Sharp!
* TList/Pro * ALLText HT/Pro * MetaDraw *
* Custom Software Development Services Too.
*
WWW.Bennet-Tec.Com
=================== ===================