The zoom factor used to display the image.
Syntax
Visual Basic (Declaration) | |
---|
<DescriptionAttribute("Select one of the center mode available to the control (none, horizonal, vertical or both).")>
<CategoryAttribute("Behavior")>
Public Overridable Property ScaleFactor As Double |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As RasterImageViewer
Dim value As Double
instance.ScaleFactor = value
value = instance.ScaleFactor |
Property Value
The zoom factor used to display the image.
Example
This example zooms out on the image displayed in the viewer
Visual Basic | Copy Code |
---|
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 |
C# | Copy Code |
---|
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);
} |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
See Also