Changes the active item or current page using the mouse or touch.
public class ImageViewerPagerInteractiveMode : ImageViewerInteractiveMode
Public Class ImageViewerPagerInteractiveMode
Inherits ImageViewerInteractiveMode
public ref class ImageViewerPagerInteractiveMode : ImageViewerInteractiveMode
ImageViewerPagerInteractiveMode derives from ImageViewerInteractiveMode and subscribes to the following events of the InteractiveService:
This mode in two modes:
If the value of ChangeActiveItem is true. Then when the user clicks and drags on the viewer surface, the current active item index changes in the viewer accordingly.
If the value of ChangeActiveItem is false. Then when the user clicks and drags on the viewer surface, the current page number in the item being used (Item) will change. This only works if the item has a valid image in Image and if it has multiple pages.
In both cases, this mode works by calculating the maximum change for the operation (either number of items when changing the active item or number of pages in RasterImage.PageCount when changing the page number). Then normalizing this value across the current height of the viewer. When the user clicks and drags on the viewer, the value changes based on the current location. Dragging up will decrease value while dragging down will increase the value.
For more information, refer to Image Viewer Interactive Modes.
using Leadtools;
using Leadtools.Controls;
using Leadtools.Codecs;
using Leadtools.Drawing;
using LeadtoolsExamples.Common;
using Leadtools.ImageProcessing;
using Leadtools.ImageProcessing.Color;
_imageViewer.InteractiveModes.BeginUpdate();
_imageViewer.InteractiveModes.Add(new ImageViewerPagerInteractiveMode { IsEnabled = true });
_imageViewer.InteractiveModes.EndUpdate();
Imports Leadtools
Imports Leadtools.Controls
Imports Leadtools.Codecs
Imports Leadtools.Drawing
Imports Leadtools.ImageProcessing
Imports Leadtools.ImageProcessing.Color
_imageViewer.InteractiveModes.BeginUpdate()
Dim mode As New ImageViewerPagerInteractiveMode
mode.IsEnabled = True
_imageViewer.InteractiveModes.Add(mode)
_imageViewer.InteractiveModes.EndUpdate()
Products |
Support |
Feedback: ImageViewerPagerInteractiveMode Class - Leadtools.Controls |
Introduction |
Help Version 19.0.2017.6.20
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.