Home
Features
Demos
Store
Forum
Support
ImageEn Forum
Profile
Join
Active Topics
Forum FAQ
Search
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
How to display different images with the same scale and position in TImageEnView
New Topic
Reply to Topic
Author
Topic
Flashcqxg
100 Posts
Posted - Jan 03 2025 : 21:11:28
I use TImageEnView to browse different images. When I zoom out and move the current image position, I want to keep the current zoom ratio and position when loading and browsing the next image. How can I achieve this?
xequte
38705 Posts
Posted - Jan 04 2025 : 01:31:00
Hi
The zoom value should be maintained when loading a new image (as long as you don't have AutoShrink/AutoStretch turned on).
The position is reset upon loading so you would need to store and set the ViewX/Y:
http://www.imageen.com/help/TImageEnView.ViewX.html
Nigel
Xequte Software
www.imageen.com
Flashcqxg
100 Posts
Posted - Jan 04 2025 : 05:48:59
Thank you. I want to know how to freely move images by dragging them with the mouse in TImageEnView?
xequte
38705 Posts
Posted - Jan 04 2025 : 20:30:00
Hi
Ensure miScroll is specified for MouseInteractGeneral:
http://www.imageen.com/help/TImageEnView.MouseInteractGeneral.html
Nigel
Xequte Software
www.imageen.com
Flashcqxg
100 Posts
Posted - Jan 04 2025 : 20:37:53
When the screen width and height are both greater than the height and width of the image, can it move freely up, down, left, and right?
Flashcqxg
100 Posts
Posted - Jan 04 2025 : 20:43:07
What I mean is, I want to press the left mouse button and drag the image to any position
xequte
38705 Posts
Posted - Jan 05 2025 : 15:09:00
For that you would need to treat the background image as an image layer. Set MouseInteractLayers to mlMoveLayers:
http://www.imageen.com/help/TImageEnView.MouseInteractLayers.html
You will also need to disable the locking of Layer 0 (the background).
ImageEnView1.Layers[0].Locked := False;
ImageEnView1.Layers[0].Selectable := True;
Nigel
Xequte Software
www.imageen.com
Topic
New Topic
Reply to Topic
Jump To:
Select Forum
ImageEn Library for Delphi, C++ and .Net
ImageEn and IEvolution Support Forum
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page