SetZoom

<< Click to Display Table of Contents >>

Manual > Control Reference > Route > Route Methods >

SetZoom


 

Specify the zoom factor to enlarge or reduce the image.

 


syntax

SetZoom(

         viewName,

         zoomRatio

          [, bCenter = F]

         [, centerX = 0]

          [, centerY = 0]

         )

 


Parameters

 

viewName

 

Type:

character

 

Specify the target view name. The view name to specify is"About form names and view names"See.

 

zoomRatio

 

Type:

Number

 

Zoom ratio. If you want to zoom in, specify a number greater than 1 (up to 10x). If you want to zoom out, specify a number less than 1. If you specify 0, it will behave the same as ResetZoom.

Example: In case of 2, the display is enlarged by 2 times.

Example: 0.5 means 1/2 reduction

 

bCenter

 

Type:

Boolean

 

TRUE - Zooms around the center of the form.

FALSE - Zoom around centerX, centerY.

 

centerX

 

Type:

Number

 

The X value of the expansion center point used when bCenter is FALSE.

 

centerY

 

Type:

Number

 

The Y value of the expansion center point used when bCenter is FALSE.

 

Return Value

 

 

Type:

Boolean

 

FALSE - Failure. TRUE - Success.

 


hmtoggle_plus1Explanation

 


Supported


×

Script Action

○

Browser script

×

Calculation Expression Syntax

 


reference