LEADTOOLS WinRT(Leadtools.Controls)
LEAD Technologies, Inc

ImageViewerSpyGlassInteractiveMode Class


Members 
Draws and pans a spy glass on top of the viewer. WinRT support
Object Model
ImageViewerSpyGlassInteractiveMode ClassImageViewer ClassInteractiveService Class
Syntax
public sealed class ImageViewerSpyGlassInteractiveMode : ImageViewerInteractiveMode 
function Leadtools.Controls.ImageViewerSpyGlassInteractiveMode()
Remarks

ImageViewerSpyGlassInteractiveMode derives from ImageViewerInteractiveMode and subscribes to the following events of the InteractiveService:

ImageViewerSpyGlassInteractiveMode works as follows:

  1. When InteractiveService.DragStarted is received, a temporary ractangle element is created on top of the viewer, this rectangle is used to draw the spy glass.

  2. When InteractiveService.DragDelta is received, the temporary rectangle is moved to the current position.

  3. When InteractiveService.DragCompleted is received, the temporary canvas is removed.

ImageViewerSpyGlassInteractiveMode interactive mode does not perform any action on the viewer (besides drawing, moving and then removing the spy glass). It is up to the user to implement any custom operation required. For example, to implement a magnify glass. ImageViewerMagnifyGlassInteractiveMode derives from ImageViewerSpyGlassInteractiveMode and overrides the OnDrawImage method to draw a magnified version of the area under the spy glass.

Example
For an example, refer to ImageViewerSpyGlassInteractiveMode.
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

ImageViewerSpyGlassInteractiveMode Members
Leadtools.Controls Namespace

 

 


Products | Support | Contact Us | Copyright Notices

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