LEADTOOLS WinRT(Leadtools.Controls)
LEAD Technologies, Inc

ImageViewerRubberBandInteractiveMode Class


Members 
Draws a rectangle on the viewer. WinRT support
Object Model
ImageViewerRubberBandInteractiveMode ClassImageViewer ClassInteractiveService Class
Syntax
public sealed class ImageViewerRubberBandInteractiveMode : ImageViewerInteractiveMode 
function Leadtools.Controls.ImageViewerRubberBandInteractiveMode()
Remarks

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

ImageViewerRubberBandInteractiveMode works as follows:

  1. When InteractiveService.DragStarted is received, a temporary canvas element is created on top of the viewer, this canvas is used to draw the rubber band rectangle. The following properties are used to customize the appearance of this canvas: BorderColor, BorderThickness and the event RubberBandStarted is fired.

  2. When InteractiveService.DragDelta is received, the temporary canvas is moved to the current position and the event RubberBandDelta is fired.

  3. When InteractiveService.DragCompleted is received, the temporary canvas is removed and the event RubberBandCompleted is fired.

ImageViewerRubberBandInteractiveMode interactive mode does not perform any action on the viewer (besides drawing, moving and then removing the rectangle). It is up to the user to implement any custom operation required. For example, to select a region of interest on the image. ImageViewerZoomToInteractiveMode derives from ImageViewerRubberBandInteractiveMode and calls ImageViewer.ZoomToRect upon the receiving of RubberBandCompleted event.

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

ImageViewerRubberBandInteractiveMode Members
Leadtools.Controls Namespace

 

 


Products | Support | Contact Us | Copyright Notices

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