Graphics Subroutine: Translates physical coordinates or window coordinates to viewport coordinates.
Module: USE DFLIB
Syntax
TYPE xycoord
INTEGER(2) xcoord ! x-coordinate
INTEGER(2) ycoord ! y-coordinate
END TYPE xycoord
Viewport coordinates refer to an area of the screen defined as the viewport with SETVIEWPORT. Physical coordinates refer to the whole screen. Both take integer coordinate values. Window coordinates refer to a window sized with SETWINDOW or SETWSIZEQQ. Window coordinates are floating-point values and allow easy scaling of data to the window area. For a more complete discussion of coordinate systems, see Understanding Coordinate Systems in the Programmer's Guide.
Compatibility
STANDARD GRAPHICS QUICKWIN GRAPHICS LIB
See Also: GETPHYSCOORD, GETWINDOWCOORD
Example
See the example program in GETPHYSCOORD.