Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, December 23, 2008 4:49:20 AM(UTC)

gfjud11  
gfjud11

Groups: Registered
Posts: 3


I downloaded the evaluation copy of LeadTools .NET 32-bit eval 16.  I am running WinXp, VS 2005 SP1, & Framework 2.0.50727 SP1. 

I am able to zoom in and out by adjusting the ScaleFactor.  I set the VerticalAlignMode = CENTER and HorizontalAlignMode = Center. When I zoom out the image is positioned in the center of the imageviewer but when I zoom in the image is not centered in the imageviewer but moves to the Top, Left corner of the image.  If you are at the bottom of the image and you zoom in, it takes you to the top and then you have to move all the way back down and I would like to avoid that.

What I would like ot achieve is that when I zoom in, the image either gets centered or does not jump to the Top, Left corner. 

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, December 23, 2008 6:03:11 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

There is an example that shows how to zoom while keeping the viewer centered. It is in the help topic for the RasterImageViewer.CenterAtPoint Method
There's an online edition of the help topic which you can find at:
http://www.leadtools.com/help/leadtools/v16/dh/wi/Leadtools.WinForms~Leadtools.WinForms.RasterImageViewer~CenterAtPoint.html

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.066 seconds.