Leadtools.Web Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
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;}
Managed Extensions for C++ 
public: __property double get_ScaleFactor();
public: __property void set_ScaleFactor( 
   double value
);
C++/CLI 
public:
property double ScaleFactor {
   double get();
   void set (double value);
}

Return Value

Zoom factor used to display the image.

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

Example

Refer to OpenImageUrl

Remarks

You can get and set this property when the 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