Example: Defining the Current Color

The Colors example shows how to define the current color for both 256-color and direct color virtual buffers. It is very similar to the First example, but Colors will obtain the display driver's color depth and create a 640x480 virtual buffer of that color depth. Like First, this virtual buffer is then filled with blue pixels.

C/C++ version

C++Builder version

Delphi version

Visual Basic version

<< Prev

Next >>

Contents
Fastgraph Home Page

 

copyright 2001 Ted Gruber Software, Inc.