Color

An attribute bundle can use any paint class that descends from TPaint to define fill and frame paints. As shown in Figure 96, TPaint is an abstract base class whose derived classes can represent specific kinds of paints. Its GetColor and GetImage functions return the paint in use.

TColorPaint represents a constant color that is defined by TColor. TImagePatternPaint represents a color and repeating pattern that is defined by TGImage. TPaint, TColorPaint, and TImagePatternPaint are attribute classes; whereas, TColor and TGImage are not.

The constructors for the special-purpose bundles take a TColor, and the TGrafBundle constructor takes a TPaint. TColorPaint and the TColor derived classes are described in the headings below.



[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker