Image Viewer CP ActiveX Control

Zoom

 

Zoom with custom factor.
 

Public Function Zoom( _
   ByVal iXPercent As Integer, _
   ByVal iYPercent As Integer
 ) As bool

 

Parameter

iXPercent
 sets the x-axis scale factor, e.g. 50 =50% 100=100% , 200=20%

iYPercent
 sets the y-axis scale factor, e.g. 50 =50% 100=100% , 200=20%


Return Value

Return true if successful.
Return false if failed.


Example

   

Visual Basic Syntax
ImageViewer1.FileName="c:\test1.jpg"
ImageViewer1.Zoom 100,50