Filling a Virtual Buffer

The 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++:

fg_setcolor(255);
fg_fillpage();

Delphi:

fg_setcolor(255);
fg_fillpage;

Visual Basic:

Call fg_setcolor(255)
Call fg_fillpage

To fill a direct color virtual buffer with white pixels, you would instead use:

C/C++:

fg_setcolorrgb(255,255,255);
fg_fillpage();

Delphi:

fg_setcolorrgb(255,255,255);
fg_fillpage;

Visual Basic:

Call fg_setcolorrgb(255, 255, 255)
Call fg_fillpage

<< Prev

Next >>

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.