Author |
Topic  |
|
pkenderdine

Australia
14 Posts |
Posted - Sep 15 2013 : 23:15:00
|
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
|
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 |
 |
|
pkenderdine

Australia
14 Posts |
Posted - Sep 19 2013 : 01:08:10
|
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. |
 |
|
xequte
    
39076 Posts |
|
|
Topic  |
|