Using Intel® Visual Fortran to Create and Build Windows*-Based Applications

ID 757211
Date 7/23/2021
Public
Document Table of Contents

Drawing Graphics

If you want anything other than the default line style (solid), mask (no mask), background color (black), or foreground color (white), you must call the appropriate routine before calling the drawing routine. Subsequent output routines employ the same attributes until you change them or open a new child window.

The following is a list of routines that provide information on the current graphics settings, set new graphics settings, and draw graphics:

Routine

Description

ARC, ARC_W

Draws an arc

CLEARSCREEN

Clears the screen, viewport, or text window

ELLIPSE, ELLIPSE_W

Draws an ellipse or circle

FLOODFILL, FLOODFILL_W

Fills an enclosed area of the screen with the current color index using the current fill mask

FLOODFILLRGB, FLOODFILLRGB_W

Fills an enclosed area of the screen with the current RGB color using the current fill mask

Most of these routines have multiple forms. Routine names that end with _W use the window-coordinate system and REAL(8) argument values. Routines without this suffix use the viewport-coordinate system and INTEGER(2) argument values.

Curved figures, such as arcs and ellipses, are centered within a bounding rectangle, which is specified by the upper-left and lower-right corners of the rectangle. The center of the rectangle becomes the center for the figure, and the rectangle's borders determine the size of the figure. In the following figure, the points (x1, y1) and (x2, y2) define the bounding rectangle.

Bounding Rectangle