GRAPHIC SCALE statement

Purpose

Define a custom coordinate system for the graphic target.

Syntax

GRAPHIC SCALE (x1!, y1!) - (x2!, y2!)
GRAPHIC SCALE PIXELS

Remarks

The graphic target must first be chosen with GRAPHIC ATTACHGRAPHIC SCALE lets you define your own world coordinate system for subsequent GRAPHIC statements.  The custom coordinates remain with the graphic target until GRAPHIC SCALE is repeated, or the target is deleted.  World coordinates may be floating point values, with the only requirement that x1! not equal x2!, and y1! not equal y2!.  If either is equal, the statement is ignored.

If x2! is greater than x1!, coordinates grow larger as they move to the right.  Otherwise, they grow larger as they move to the left.

If y2! is greater than y1!, coordinates grow larger as they move downward. Otherwise, they grow larger as they move upward.

GRAPHIC SCALE PIXELS sets or resets the coordinate system to pixel coordinates.  This can be particularly valuable when the original coordinates are in Dialog Units, since this provides increased resolution for other graphic functions.

See also

GRAPHIC ATTACH, GRAPHIC GET SCALE