| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (47 out of 48)

x-magnification and y-magnification

Specifies the G2 window's default ratio of horizontal (x-axis) or vertical (y-axis) magnification, in pixels per G2 workspace unit, for workspaces displayed at full scale.

Platforms

All platforms

Syntax

	-x-mag[nification] magnification-ratio 
and
-y-mag[nification] magnification-ratio
magnification-ratio: A decimal value from 0.50 to 2.66.

Equivalent Environment Variable

None

Description

For a display device that supports distinct settings for vertical and horizontal resolutions, you can use the -x-magnification and -y-magnification options to specify distinct horizontal and vertical magnifications.

These options specify the ratio of pixels per workspace unit at which the new G2 window displays workspaces. For either option, specify a decimal value in the range 0.50 to 2.66.

If you do not specify the -x-magnification or -y-magnification options, nor the -magnification option, the new G2 uses a -magnification setting of 1.0; this is equivalent to a -x-magnification setting of 1.0 and a -y-magnification setting of 1.0.

By specifying different combinations of -x-magnification and -y-magnification settings, you can display workspaces in the G2 process's window at an effectively equivalent absolute size on different display devices.

For more information about using the -magnification, -x-magnification, and -y-magnification options, see Specifying the Resolution and Magnification.

Special Considerations

Alternatively, you can use the -magnification option to specify the same setting for both the horizontal and vertical axes.

However, don't combine the -magnification argument with either the -x-magnification or -y-magnification options.

Example

This command starts a G2 process whose window displays full-scale workspaces with a horizontal magnification of two pixels per G2 workspace unit and with a vertical magnification of one and a half pixels per G2 workspace unit:

| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (47 out of 48)

Copyright © 1997 Gensym Corporation, Inc.