The zoom factor used to display the image.
[DescriptionAttribute("Select one of the center mode available to the control (none, horizontal, vertical or both).")]
[CategoryAttribute("Behavior")]
public virtual double ScaleFactor {get; set;}
<DescriptionAttribute("Select one of the center mode available to the control (none, horizontal, vertical or both).")>
<CategoryAttribute("Behavior")>
Public Overridable Property ScaleFactor As Double
[DescriptionAttribute("Select one of the center mode available to the control (none, horizontal, vertical or both).")]
[CategoryAttribute("Behavior")]
public:
virtual property double ScaleFactor {
double get();
void set ( double );
}
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
Imports Leadtools.WinForms
Imports Leadtools
Imports Leadtools.Codecs
Imports Leadtools.ImageProcessing.Color
Imports Leadtools.Drawing
Public Sub RasterImageViewer_ScaleFactor(ByVal viewer As RasterImageViewer)
viewer.ScaleFactor = viewer.ScaleFactor * 0.9F
Dim s As String = String.Format("CurrentXScaleFactor {0}, CurrentYScaleFactor {1}", viewer.CurrentXScaleFactor, viewer.CurrentYScaleFactor)
MessageBox.Show(s)
End Sub
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);
}
![]() |
Products |
Support |
Feedback: ScaleFactor Property (RasterImageViewer) - Leadtools.WinForms |
Introduction |
Help Version 19.0.2017.3.22
|
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.