GdPicture.NET.14
GdPicture14 Namespace / GdViewer Class / MagnifierZoomY Property
Example





In This Topic
MagnifierZoomY Property (GdViewer)
In This Topic
Gets or sets the current vertical zoom (scale) factor of the magnifier tool used in the GdViewer control. You can enable the use of the magnifier tool in your application by setting the MouseMode property to ViewerMouseMode.MouseModeMagnifier.

Please use the value 1 to define the 100% zoom factor, 1.5 to define 150%, 2 to define the 200% zoom factor, etc.

Syntax
'Declaration
 
Public Property MagnifierZoomY As Single
public float MagnifierZoomY {get; set;}
public read-write property MagnifierZoomY: Single; 
public function get,set MagnifierZoomY : float
public: __property float get_MagnifierZoomY();
public: __property void set_MagnifierZoomY( 
   float value
);
public:
property float MagnifierZoomY {
   float get();
   void set (    float value);
}

Property Value

The default value is 2.0.
Remarks
Please try the Document Viewer Sample here to find out, how to utilize the magnifier tool in your application.
Example
How to change the magnifier properties.
'We assume that the GdViewer1 control has been properly integrated.
GdViewer1.MagnifierHeight = 120
GdViewer1.MagnifierWidth = 200
GdViewer1.MagnifierZoomX = 1.5F
GdViewer1.MagnifierZoomY = 1.5F
GdViewer1.MouseMode = ViewerMouseMode.MouseModeMagnifier
//We assume that the GdViewer1 control has been properly integrated.
GdViewer1.MagnifierHeight = 120;
GdViewer1.MagnifierWidth = 200;
GdViewer1.MagnifierZoomX = 1.5f;
GdViewer1.MagnifierZoomY = 1.5f;
GdViewer1.MouseMode = ViewerMouseMode.MouseModeMagnifier;
See Also