Home
Features
Demos
Store
Forum
Support
ImageEn Forum
Profile
Join
Active Topics
Forum FAQ
Search
All Forums
ImageEn Library for Delphi, C++ and .Net
ImageEn and IEvolution Support Forum
Selection, Zoom and ViewXY
Note:
You must be registered in order to post a reply.
To register,
click here
. Registration is FREE!
View
Small
Medium
Regular
Large
UserName:
Password:
Format
Font
Andale Mono
Arial
Arial Black
Book Antiqua
Century Gothic
Comic Sans MS
Courier New
Georgia
Impact
Lucida Console
Script MT Bold
Stencil
Tahoma
Times New Roman
Trebuchet MS
Verdana
Size
8
10
12
14
18
24
Color
█████
█████
█████
█████
█████
█████
█████
█████
█████
█████
█████
█████
█████
█████
Message
Emoji
Check here to include your profile signature.
Check here to subscribe to this topic.
T O P I C R E V I E W
BionicWave
Posted - Feb 18 2012 : 16:19:33
I looked at the online-help but could not find the right property for my problem.
When i zoom into a picture and move a selection, i want to adjust the ViewX and ViewY, so that the selection stays visible.
This is easy to do for SelX1 and ViewX, because i can calculate when selection is smaller then SelX1.
Now i would like to move the view to the right whenever the selection SelX2 is bigger than the visible window.
How can i calculate this?
1 L A T E S T R E P L I E S (Newest First)
BionicWave
Posted - Feb 18 2012 : 17:30:29
I think i found the solution.
I have to calculate the borders of the view by doing:
ViewLeft := trunc(imgen.viewX * (100 / img.zoom));
ViewRight := trunc( ImageEn.Clientwidth * (100 / img.zoom));
Then i can calculate if a given point is inside the viewable zoomed area.