OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Wrapper for Windows' RBGQUAD type. More...
#include <owl/color.h>
Public Member Functions | |
TRgbQuad (int r, int g, int b) | |
Creates a TRgbQuad object with rgbRed, rgbGreen, and rgbBlue set to r, g, and b respectively. | |
TRgbQuad (const TColor &c) | |
Creates a TRgbQuad object with rgbRed, rgbGreen, rgbBlue set to c.Red, c.Green, c.Blue respectively. | |
TRgbQuad (const RGBQUAD &q) | |
Creates a TRgbQuad object with the same values as the referenced RGBQUAD object. | |
bool | operator== (COLORREF cr) const |
Return true if the RGBQUAD has the same color components. | |
Wrapper for Windows' RBGQUAD type.
TRgbQuad is a support class derived from the structure tagRGBQUAD, which is defined as follows:
The elements rgbBlue, rgbGreen, and rgbRed specify the relative blue, green, and red intensities of a color. rgbReserved is not used and must be set to 0.
TRgbQuad is used in conjunction with the classes TPalette and TColor to simplify RGBQUAD-based color operations. Constructors are provided to create TRgbQuad objects from explicit RGB values, from TColor objects, or from other TRgbQuad objects.
|
inline |
|
inline |