AT&T 6300 Programmer's Manual page 404

Gwbasic by microsoft
Hide thumbs Also See for 6300:
Table of Contents

Advertisement

PMAP
Function
Syntax
coordinate
n
Remarks
Examples
7-248
Converts physical coordinates to world
coordinates or vice versa (Graphics Mode
only.)
PMAP (coordinate,n)
is a numeric expression specifying the x or y coordinate of
the point to be mapped.
is an integer in the range 0 to 3:
o
maps the world coordinate x to the physical coordinate x
1 maps the world coordinate y to the physical coordinate y
2 maps the physical coordinate x to the world coordinate x
3 maps the physical coordinate y to the world coordinate y
The four PMAP functions allow you to find
equivalent point locations between the world
coordinates created with the WINDOW
statement and the physical coordinate system
of the screen or viewport as defined by the
VIEW statement.
Given a defined WINDOW SCREEN (80,100)-
(200,200) the upper left coordinate of the
window is (80,100) and the lower right is
(200,200). The screen coordinates are (0,0) in
the upper left hand corner and (639,199) in the
lower right. Then:

Advertisement

Table of Contents
loading

Table of Contents