Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

GETWINDOWCOORD

Graphics Subroutine: Converts viewport coordinates to window coordinates. This routine is only available for Windows.

Module

USE IFQWIN

CALL GETWINDOWCOORD (x,y,s)

x,y

(Input) INTEGER(2). Viewport coordinates to be converted to window coordinates.

s

(Output) Derived type wxycoord. Window coordinates. The wxycoord derived type is defined in IFQWIN.F90 as follows:

TYPE wxycoord
  REAL(8) wx   ! x-coordinate
  REAL(8) wy   ! y-coordinate
END TYPE wxycoord 

Physical coordinates refer to the physical screen. Viewport coordinates refer to an area of the screen defined as the viewport with SETVIEWPORT. 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.

Example

See the example program in GETPHYSCOORD.