Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
PMAP Function
◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
Returns the window coordinate equivalent to a viewport coordinate, as defined
by the WINDOW statement, or vice versa.
PMAP (startcoordinate#, n%)
■ startcoordinate# A window or viewport coordinate.
■ n% A value indicating which coordinate is returned:
startcoordinate# n% Returns
═════════════════════ ══ ═════════════════════
Window x coordinate 0 Viewport x coordinate
Window y coordinate 1 Viewport y coordinate
Viewport x coordinate 2 Window x coordinate
Viewport y coordinate 3 Window y coordinate
Example:
'This example requires a graphics adapter that supports screen mode 1.
SCREEN 1
WINDOW SCREEN (0, 0)-(100, 100)
PRINT "Logical x=50, physical x="; PMAP(50, 0)
PRINT "Logical y=50, physical y="; PMAP(50, 1)
See Also ◄POINT► ◄VIEW► ◄WINDOW►