←Select platform

DefaultZoomOrigin Property

Summary

Origin of the default zoom point for current horizontal and vertical alignment, in control pixel coordinates.

Syntax
C#
C++/CLI
public virtual LeadPoint DefaultZoomOrigin { get; } 
public:  
   virtual property LeadPoint^ DefaultZoomOrigin 
   { 
      LeadPoint^ get() 
   } 

Property Value

The default point of origin for zoom operations for current horizontal and vertical alignment in control coordinates.

Remarks

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.

Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.