LEADTOOLS WinRT(Leadtools.Controls)
LEAD Technologies, Inc

DefaultZoomOrigin Property


Gets the origin of the default zoom point for current horizontal and vertical alignment, in control coordinates. WinRT support
Syntax
public virtual Point DefaultZoomOrigin {get;}
 get_DefaultZoomOrigin(); 

Property Value

A Leadtools.LeadPointD that contains the default point of origin for zoom operations for current horizontal and vertical alignment in control coordinates.
Remarks

You can zoom the image in the viewer using the Zoom method. Any zooming operation requires an origin. After the image 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 either manually or by querying the ImageControlCenter property.

In other instances, the application might want to zoom the image depending on the value of ImageHorizontalAlignment and ImageVerticalAlignment 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. You can use DefaultZoomOrigin to obtain this value automatically.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ImageViewer Class
ImageViewer Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.