NAME PMAP Function SYNOPSIS PMAP (startcoordinate#, n%) o startcoordinate# A window or viewport coordinate. o 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 DESCRIPTION Returns the window coordinate equivalent to a viewport coordinate, as defined by the WINDOW statement, or vice versa. 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