Scrolls the viewer by the specified amount in pixels.
ImageViewer.prototype.scrollBy = function(
point
)
scrollBy(
point: LeadPointD
): void;
point
The amount by which to scroll the viewer.
This method will add point to the current ScrollOffset. Therefore, this method will follow the same rules governing the minimum and maximum values of ScrollOffset.
If the value of ScrollMode is ControlScrollMode.Hidden and RestrictScroll is set to false, calling ScrollBy will work with any value since there's no restriction on the scroll offset. The helper methods ScrollByRestrict and RestrictScrollOffset can be used to perform scrolling by a certain amount while virtually restricting the offset.
ImageViewerPanZoomInteractiveMode uses this method to perform its operation.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document