[UP]


Manual Reference Pages  - getviewport (3)

NAME

getviewport(3f) - [M_pixel] return viewport in screen pixel coordinates (LICENSE:PD)

CONTENTS

Synopsis
Description
Options
Author
License

SYNOPSIS

definition:

   subroutine getviewport(left, right, bottom, top)
   real,intent(out)    :: left
   real,intent(out)    :: right
   real,intent(out)    :: bottom
   real,intent(out)    :: top

DESCRIPTION

Returns the left, right, bottom and top limits of the current viewport in screen coordinates (-1.0 to 1.0).

    Fortran:
         subroutine getviewport(left, right, bottom, top)
         real left, right, bottom, top
If a pixel array has been declared to be real :: array(600,400)

        o-----> X                         (right=600,top=0)
        | #------------------------------------#
        | |                                    |
        | |                                    |
        V |                                    |
        Y |                                    |
          #------------------------------------#
(left=0,bottom=400)

OPTIONS

LEFT value for left side
RIGHT value for right side
BOTTOM value for bottom side
TOP value for top side

AUTHOR

John S. Urban

LICENSE

Public Domain


getviewport (3) March 11, 2021
Generated by manServer 1.08 from c7bbfb2b-8734-4d20-b0fd-aa09e502bda7 using man macros.