Zoom


Function

 

Specifies the display magnification of the graph.

 

Format

 

Ret = dncGraph1.Zoom(ZoomDirection, ZoomValue)

 

Parameters

 

ZoomDirection [ C#: short ] [ VB.NET: Short ]
Specifies the zoom direction.

Value

Description

0

X-axis direction

1

Y-axis direction

2

Both directions

 

ZoomValue [ C#: float ] [ VB.NET: Single ]

Specifies the scaling ratio.
If 1, it will be the same size, if less than 1, it will be zomm out, and if larger than 1, it will be zoom in.
0 < DataRange <= 100

 

Return value

 

Ret [ C#: int ] [ VB.NET: Integer ]

 

Value

Description

0

Normality completion

510001

The input parameter is invalid. Check the parameter contents.

Other errors (see: Error code details)

 

Remarks

 

Applies the specified magnification to the current display.

 

Example

 

Zooms in the graph twice in the Y-axis direction.

C#

int Ret

Ret = dncGraph1.Zoom(1, 2.0);

 

VB.NET

Dim Ret As Integer

Ret = dncGraph1.Zoom(1, 2.0)