Origin of the default zoom point for current horizontal and vertical alignment, in control pixel coordinates.
public virtual LeadPoint DefaultZoomOrigin { get; }
Public Overridable ReadOnly Property DefaultZoomOrigin() As LeadPoint
Get
The default point of origin for zoom operations for current horizontal and vertical alignment in control coordinates.
You can zoom the viewer using the Zoom method. Any zooming operation requires an origin. After the viewer is zoomed, this origin point should stay the same on the screen. You can zoom an image using different zoom origins, for example, around 0,0, the center of the image, any edge or any other arbitrary value.
Usually, applications zoom the image around its center. You can calculate the center manually by getting the center of the viewer client area.
In other instances, the application might want to zoom the viewer depending on the value of ViewHorizontalAlignment and ViewVerticalAlignment for example, when the alignment is left and top, the origin should be 0,0. When the alignment is center and center, the origin should be the center of the control, when the alignment is left and center, the origin should be half the width, 0 and so on. Use DefaultZoomOrigin to obtain this value automatically.
For more information, refer to Zoom.
Products |
Support |
Feedback: DefaultZoomOrigin Property (ImageViewer) - Leadtools.Controls |
Introduction |
Help Version 19.0.2017.6.20
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.