public sealed class ImageViewerSpyGlassInteractiveMode : ImageViewerInteractiveMode
function Leadtools.Controls.ImageViewerSpyGlassInteractiveMode()
ImageViewerSpyGlassInteractiveMode derives from ImageViewerInteractiveMode and subscribes to the following events of the InteractiveService:
ImageViewerSpyGlassInteractiveMode works as follows:
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.
When InteractiveService.DragDelta is received, the temporary rectangle is moved to the current position.
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.
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