Zooms the image display at the specified point with the specified scale factor.
public virtual void ZoomAtPoint(
Point pt,
double scaleFactor
)
public:
virtual void ZoomAtPoint(
Point pt,
double scaleFactor
)
public:
virtual void ZoomAtPoint(
Point^ pt,
double scaleFactor
)
pt
The point at which to zoom the image display, in client coordinates.
scaleFactor
Scale factor to use. A value greater than 1 will zoom in the image and a value less than 1 will zoom out the image. Must be a value greater than 0.
If the value of scaleFactor was anything other than the default value of 1, then this method will zooms in (if the value is greater than 1) or zooms out (if the value is less than 0) the image as well around the point specified by pt.
This example shows to zoom the viewer around the point when the user clicks on the image.
using Leadtools.WinForms;
using Leadtools;
using Leadtools.Codecs;
using Leadtools.ImageProcessing.Color;
using Leadtools.Drawing;
private static void ZoomAtPointExample(RasterImageViewer viewer)
{
// Subscribe to the viewer click event
viewer.MouseClick += viewer_MouseClick;
}
private static void viewer_MouseClick(object sender, MouseEventArgs e)
{
// Zoom in twice around the mouse coordinates
RasterImageViewer viewer = sender as RasterImageViewer;
viewer.ZoomAtPoint(new Point(e.X, e.Y), 2.0);
}
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