The zoom factor used to display the image.
public virtual double ScaleFactor { get; set; }
public:
virtual property double ScaleFactor
{
double get()
void set(double value)
}
The zoom factor used to display the image.
You can get and set this property when the SizeMode property is RasterPaintSizeMode.Normal. This property is read only when the SizeMode property is set to any other value. When SizeMode is set to RasterPaintSizeMode.Stretch, the zoom factor is the smallest of the Width or Height zoom factors (the aspect ratio is not preserved).
This example zooms out on the image displayed in the viewer
using Leadtools.WinForms;
using Leadtools;
using Leadtools.Codecs;
using Leadtools.ImageProcessing.Color;
using Leadtools.Drawing;
public void RasterImageViewer_ScaleFactor(RasterImageViewer viewer)
{
viewer.ScaleFactor = viewer.ScaleFactor * 0.9f;
string s = string.Format("CurrentXScaleFactor {0}, CurrentYScaleFactor {1}", viewer.CurrentXScaleFactor, viewer.CurrentYScaleFactor);
MessageBox.Show(s);
}
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