ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 [IEvolution] Image Zoom and Rotate
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

pkenderdine

Australia
14 Posts

Posted - Sep 15 2013 :  23:15:00  Show Profile  Reply
Please can you tell me using IEViewer how to zoom around a particular point. For Example, I have EnableZoomOnSelect set on. After the zoom the user may want to rotate the image but have the zoomed area still visible after the zoom. At the moment because the image is larger than the client area, the image rotates but the zoomed area is not within the client area anymore. The user must zoom out and in again to locate the area again.

Regards
Phil

w2m

USA
1990 Posts

Posted - Sep 17 2013 :  08:14:08  Show Profile  Reply
You could try to use ZoomAt to zoom at a x,y value:

TImageEnView.ZoomAt

Declaration
procedure ZoomAt(x, y: integer; ZoomVal: double; Center:boolean=true);

Description
This method zooms by the ZoomVal percentage centered at the point x,y.
If the optional Center parameter if False, the zooming center is x, y, otherwise (the default) it is the center of image.

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page

pkenderdine

Australia
14 Posts

Posted - Sep 19 2013 :  01:08:10  Show Profile  Reply
Thanks, I did see this method and it is likely the solution. I just need to figure out how to get the center x,y cords from IEViewer from the center point that is currently on view in the client area, not the center point of the image. I need to read some more to find the correct method. I tried to debug the properties but nothing jumped out as being the current view coordinates.
Go to Top of Page

xequte

39076 Posts

Posted - Sep 19 2013 :  02:50:05  Show Profile  Reply
Please try the PointToClient/PointToScreen methods:

http://www.imageen.com/ievolutionhelp/html/fea50b6a-b092-0d62-ecf5-ef9f28a0b853.htm



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: