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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 [IEvolution] Image Zoom and Rotate

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
pkenderdine 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
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 19 2013 : 02:50:05
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
pkenderdine 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.
w2m 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