Leadtools.Web Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
ScaleFactor Property
See Also 
Leadtools.Web.Controls Namespace > WebImageViewer Class : ScaleFactor Property




Gets or sets the zoom factor used to display the image.

Syntax

Visual Basic (Declaration) 
Public Property ScaleFactor As Double
Visual Basic (Usage)Copy Code
Dim instance As WebImageViewer
Dim value As Double
 
instance.ScaleFactor = value
 
value = instance.ScaleFactor
C# 
public double ScaleFactor {get; set;}
C++/CLI 
public:
property double ScaleFactor {
   double get();
   void set (double value);
}
JavaScript 
getScaleFactor(): double;
setScaleFactor(value: double);

Return Value

Zoom factor used to display the image.

1 means displaying the image at the original width or height (1:1).

Example

Remarks

You can get and set this property when the WebImageViewer.SizeMode property is Normal.

This property is read only when the SizeMode property is set to any other value.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also