QBasic 1.1: PMAP Function

Syntax

PMAP (startcoordinate#, n%)

Description / Parameter(s)

startcoordinate# A window or viewport coordinate.
n% A value indicating which coordinate is returned:
 
startcoordinate#n%Returns
Window x coordinate0Viewport x coordinate
Window y coordinate1Viewport y coordinate
Viewport x coordinate2Window x coordinate
Viewport y coordinate3Window 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)