Filling a Virtual BufferThe fg_erase() function clears the active virtual buffer by setting each pixel to zero. Another function, fg_fillpage(), fills the active virtual buffer with pixels of the current color, as defined in the most recent call to fg_setcolor(). Both fg_erase() and fg_fillpage() have no parameters. For example, you could use the following statements to fill a 256-color virtual buffer with white (color 255) pixels:
C/C++:
Delphi:
Visual Basic:
To fill a direct color virtual buffer with white pixels, you would instead use:
C/C++:
Delphi:
Visual Basic:
|
 
copyright 2001 Ted Gruber Software, Inc.