Intel® Fortran Compiler 16.0 User and Reference Guide
Graphics Functions: Draw a rectangle using the current graphics color, logical write mode, and line style.
USE IFQWIN
result = RECTANGLE (control, x1, y1, x2, y2)
result = RECTANGLE_W (control, wx1, wy1, wx2, wy2)
control |
(Input) INTEGER(2). Fill flag. One of the following symbolic constants defined in IFQWIN.F90:
|
x1, y1 |
(Input) INTEGER(2). Viewport coordinates for upper-left corner of rectangle. |
x2, y2 |
(Input) INTEGER(2). Viewport coordinates for lower-right corner of rectangle. |
wx1, wy1 |
(Input) REAL(8). Window coordinates for upper-left corner of rectangle. |
wx2, wy2 |
(Input) REAL(8). Window coordinates for lower-right corner of rectangle. |
The result type is INTEGER(2). The result is nonzero if successful; otherwise, 0.
The RECTANGLE function uses the viewport-coordinate system. The viewport coordinates (x1, y1) and ( x2, y2) are the diagonally opposed corners of the rectangle.
The RECTANGLE_W function uses the window-coordinate system. The window coordinates (wx1, wy1) and (wx2, wy2) are the diagonally opposed corners of the rectangle.
SETCOLORRGB sets the current graphics color. SETFILLMASK sets the current fill mask. By default, filled graphic shapes are filled solid with the current color.
If you fill the rectangle using FLOODFILLRGB, the rectangle must be bordered by a solid line style. Line style is solid by default and can be changed with SETLINESTYLE.
The RECTANGLE routine described here is a QuickWin routine. If you are trying to use the Microsoft* Platform SDK version of the Rectangle routine by including the IFWIN module, you need to specify the routine name as MSFWIN$Rectangle.