# Graphics Library Routines

This section contains descriptions of the Graphics library routines, which are restricted to Windows* systems. They are listed in alphabetical order.

To access these library routines, you must specify a USE IFQWIN statement in your program.

Parent topic: A to Z Reference

- ARC, ARC_W (W*S)
  Graphics Functions: Draw elliptical arcs using the current graphics color.
- CLEARSCREEN (W*S)
  Graphics Subroutine: Erases the target area and fills it with the current background color.
- DISPLAYCURSOR (W*S)
  Graphics Function: Controls cursor visibility.
- ELLIPSE, ELLIPSE_W (W*S)
  Graphics Functions: Draw a circle or an ellipse using the current graphics color.
- FLOODFILL, FLOODFILL_W (W*S)
  Graphics Functions: Fill an area using the current color index and fill mask.
- FLOODFILLRGB, FLOODFILLRGB_W (W*S)
  Graphics Functions: Fill an area using the current Red-Green-Blue (RGB) color and fill mask.
- GETARCINFO (W*S)
  Graphics Function: Determines the endpoints (in viewport coordinates) of the most recently drawn arc or pie.
- GETBKCOLOR (W*S)
  Graphics Function: Returns the current background color index for both text and graphics output.
- GETBKCOLORRGB (W*S)
  Graphics Function: Returns the current background Red-Green-Blue (RGB) color value for both text and graphics.
- GETCOLOR (W*S)
  Graphics Function: Returns the current graphics color index.
- GETCOLORRGB (W*S)
  Graphics Function: Returns the current graphics color Red-Green-Blue (RGB) value (used by graphics functions such as ARC, ELLIPSE, and FLOODFILLRGB).
- GETCURRENTPOSITION, GETCURRENTPOSITION_W (W*S)
  Graphics Subroutines: Return the coordinates of the current graphics position.
- GETFILLMASK (W*S)
  Graphics Subroutine: Returns the current pattern used to fill shapes.
- GETFONTINFO (W*S)
  Graphics Function: Returns the current font characteristics.
- GETGTEXTEXTENT (W*S)
  Graphics Function: Returns the width in pixels that would be required to print a given string of text (including any trailing blanks) with OUTGTEXT using the current font.
- GETGTEXTROTATION (W*S)
  Graphics Function: Returns the current orientation of the font text output by OUTGTEXT.
- GETIMAGE, GETIMAGE_W (W*S)
  Graphics Subroutines: Store the screen image defined by a specified bounding rectangle.
- GETLINESTYLE (W*S)
  Graphics Function: Returns the current graphics line style.
- GETLINEWIDTHQQ (W*S)
  Graphics Function: Gets the current line width or the line width set by the last call to SETLINEWIDTHQQ.
- GETPHYSCOORD (W*S)
  Graphics Subroutine: Translates viewport coordinates to physical coordinates.
- GETPIXEL, GETPIXEL_W (W*S)
  Graphics Functions: Return the color index of the pixel at a specified location.
- GETPIXELRGB, GETPIXELRGB_W (W*S)
  Graphics Functions: Return the Red-Green-Blue (RGB) color value of the pixel at a specified location.
- GETPIXELS (W*S)
  Graphics Subroutine: Returns the color indexes of multiple pixels.
- GETPIXELSRGB (W*S)
  Graphics Subroutine: Returns the Red-Green-Blue (RGB) color values of multiple pixels.
- GETTEXTCOLOR (W*S)
  Graphics Function: Returns the current text color index.
- GETTEXTCOLORRGB (W*S)
  Graphics Function: Returns the Red-Green-Blue (RGB) value of the current text color (used with OUTTEXT, WRITE and PRINT).
- GETTEXTPOSITION (W*S)
  Graphics Subroutine: Returns the current text position.
- GETTEXTWINDOW (W*S)
  Graphics Subroutine: Finds the boundaries of the current text window.
- GETVIEWCOORD, GETVIEWCOORD_W (W*S)
  Graphics Subroutines: Translate physical coordinates or window coordinates to viewport coordinates.
- GETWINDOWCOORD (W*S)
  Graphics Subroutine: Converts viewport coordinates to window coordinates.
- GETWRITEMODE (W*S)
  Graphics Function: Returns the current logical write mode, which is used when drawing lines with the LINETO, POLYGON, and RECTANGLE functions.
- GRSTATUS (W*S)
  Graphics Function: Returns the status of the most recently used graphics routine.
- IMAGESIZE, IMAGESIZE_W (W*S)
  Graphics Functions: Return the number of bytes needed to store the image inside the specified bounding rectangle. IMAGESIZE is useful for determining how much memory is needed for a call to GETIMAGE.
- INITIALIZEFONTS (W*S)
  Graphics Function: Initializes Windows* fonts.
- LINETO, LINETO_W (W*S)
  Graphics Function: Draws a line from the current graphics position up to and including the end point.
- LINETOAR (W*S)
  Graphics Function: Draws a line between each x,y point in the from-array to each corresponding x,y point in the to-array.
- LINETOAREX (W*S)
  Graphics Function: Draws a line between each x,y point in the from-array to each corresponding x,y point in the to-array. Each line is drawn with the specified graphics color and line style.
- LOADIMAGE, LOADIMAGE_W (W*S)
  Graphics Functions: Read an image from a Windows bitmap file and display it at a specified location.
- MOVETO, MOVETO_W (W*S)
  Graphics Subroutines: Move the current graphics position to a specified point. No drawing occurs.
- OUTGTEXT (W*S)
  Graphics Subroutine: In graphics mode, sends a string of text to the screen, including any trailing blanks.
- OUTTEXT (W*S)
  Graphics Subroutine: In text or graphics mode, sends a string of text to the screen, including any trailing blanks.
- PIE, PIE_W (W*S)
  Graphics Functions: Draw a pie-shaped wedge in the current graphics color.
- POLYBEZIER, POLYBEZIER_W (W*S)
  Graphics Functions: Draw one or more Bezier curves.
- POLYBEZIERTO, POLYBEZIERTO_W (W*S)
  Graphics Functions: Draw one or more Bezier curves.
- POLYGON, POLYGON_W (W*S)
  Graphics Functions: Draw a polygon using the current graphics color, logical write mode, and line style.
- POLYLINEQQ (W*S)
  Graphics Function: Draws a line between each successive x, y point in a given array.
- PUTIMAGE, PUTIMAGE_W (W*S)
  Graphics Subroutines: Transfer the image stored in memory to the screen.
- RECTANGLE, RECTANGLE_W (W*S)
  Graphics Functions: Draw a rectangle using the current graphics color, logical write mode, and line style.
- REMAPALLPALETTERGB, REMAPPALETTERGB (W*S)
  Graphics Functions: REMAPALLPALETTERGB remaps a set of Red-Green-Blue (RGB) color values to indexes recognized by the video hardware. REMAPPALETTERGB remaps one color index to an RGB color value.
- SAVEIMAGE, SAVEIMAGE_W (W*S)
  Graphics Functions: Save an image from a specified portion of the screen into a Windows bitmap file.
- SCROLLTEXTWINDOW (W*S)
  Graphics Subroutine: Scrolls the contents of a text window.
- SETBKCOLOR (W*S)
  Graphics Function: Sets the current background color index for both text and graphics.
- SETBKCOLORRGB (W*S)
  Graphics Function: Sets the current background color to the given Red-Green-Blue (RGB) value.
- SETCLIPRGN (W*S)
  Graphics Subroutine: Limits graphics output to part of the screen.
- SETCOLOR (W*S)
  Graphics Function: Sets the current graphics color index.
- SETCOLORRGB (W*S)
  Graphics Function: Sets the current graphics color to the specified Red-Green-Blue (RGB) value.
- SETFILLMASK (W*S)
  Graphics Subroutine: Sets the current fill mask to a new pattern.
- SETFONT (W*S)
  Graphics Function: Finds a single font that matches a specified set of characteristics and makes it the current font used by the OUTGTEXT function.
- SETGTEXTROTATION (W*S)
  Graphics Subroutine: Sets the orientation angle of the font text output in degrees. The current orientation is used in calls to OUTGTEXT.
- SETLINESTYLE (W*S)
  Graphics Subroutine: Sets the current line style to a new line style.
- SETLINEWIDTHQQ (W*S)
  Graphics Subroutine: Sets the width of a solid line drawn using any of the supported graphics functions.
- SETPIXEL, SETPIXEL_W (W*S)
  Graphics Functions: Set a pixel at a specified location to the current graphics color index.
- SETPIXELRGB, SETPIXELRGB_W (W*S)
  Graphics Functions: Set a pixel at a specified location to the specified Red-Green-Blue (RGB) color value.
- SETPIXELS (W*S)
  Graphics Subroutine: Sets the color indexes of multiple pixels.
- SETPIXELSRGB (W*S)
  Graphics Subroutine: Sets multiple pixels to the given Red-Green-Blue (RGB) color.
- SETTEXTCOLOR (W*S)
  Graphics Function: Sets the current text color index.
- SETTEXTCOLORRGB (W*S)
  Graphics Function: Sets the current text color to the specified Red-Green-Blue (RGB) value.
- SETTEXTCURSOR (W*S)
  Graphics Function: Sets the height and width of the text cursor (the caret) for the window in focus.
- SETTEXTPOSITION (W*S)
  Graphics Subroutine: Sets the current text position to a specified position relative to the current text window.
- SETTEXTWINDOW (W*S)
  Graphics Subroutine: Sets the current text window.
- SETVIEWORG (W*S)
  Graphics Subroutine: Moves the viewport-coordinate origin (0, 0) to the specified physical point.
- SETVIEWPORT (W*S)
  Graphics Subroutine: Redefines the graphics viewport by defining a clipping region in the same manner as SETCLIPRGN and then setting the viewport-coordinate origin to the upper-left corner of the region.
- SETWINDOW (W*S)
  Graphics Function: Defines a window bound by the specified coordinates.
- SETWRITEMODE (W*S)
  Graphics Function: Sets the current logical write mode, which is used when drawing lines with the LINETO, POLYGON, and RECTANGLE functions.
- WRAPON (W*S)
  Graphics Function: Controls whether text output is wrapped.