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