ZoomPoint

ZoomPoint zooms in or out about a specified point.

Syntax

object.ZoomPoint( x, y, Scale )

Parameter

Type

Required/

Optional

Default

Description

x

Double

Required

This provides the x coordinate in page units.

y

Double

Required

This provides the y coordinate in page units.

Scale

Double

Required

This provides the scale factor.

Remarks

The scale factor is a number greater than 0.0. Values larger than 1.0 zoom in and values smaller than 1.0 zoom out. For example,

Scale:=2.0 will make the graphics twice as large,

Scale:=0.5 will make the graphics twice as small, and

Scale:=10.0 will make the graphics ten times as large.

Example 1

This example demonstrates how to double the zoom centered at a specified point.

PlotWindow.ZoomPoint(x:=5, y:=7, Scale:=2)

Example 2

This script displays all the methods and properties in the PlotWindow object.

Used by: PlotWindow object