#include <plpixel24.h>
Collaboration diagram for PLPixel24:
Public Member Functions | |
PLPixel24 () | |
PLPixel24 (PLBYTE r, PLBYTE g, PLBYTE b) | |
void | Set (PLBYTE r, PLBYTE g, PLBYTE b) |
void | SetR (PLBYTE r) |
void | SetG (PLBYTE g) |
void | SetB (PLBYTE b) |
PLBYTE | GetR () const |
PLBYTE | GetG () const |
PLBYTE | GetB () const |
PLPixel24 | operator= (const PLPixel32 Pix) |
operator PLPixel32 () const | |
bool | operator== (const PLPixel24 &) const |
bool | operator!= (const PLPixel24 &) const |
int | BoxDist (const PLPixel24 Pix) const |
Simple and fast 'distance' between two pixels. | |
Static Public Member Functions | |
PLPixel24 | Blend (int Factor, const PLPixel24 Pix1, const PLPixel24 Pix2) |
Returns a weighed average between two pixels. | |
Private Attributes | |
PLBYTE | m_Data [3] |
A pixel in this class contains 8 bits each of red, green and blue. The order of the color components is OS-dependent and defined in config.h. This class is meant to be fast, so all methods are inlined.
Definition at line 22 of file plpixel24.h.
|
Definition at line 70 of file plpixel24.h. Referenced by Blend(). |
|
Definition at line 75 of file plpixel24.h. |
Here is the call graph for this function:
|
Returns a weighed average between two pixels. Factor must be between 0 and 256. Factor=256 means Pix1 is the result, Factor=0 means Pix2 is the result. Definition at line 133 of file plpixel24.h. References GetB(), GetG(), GetR(), PLASSERT, and PLPixel24(). |
Here is the call graph for this function:
|
Simple and fast 'distance' between two pixels. Just adds the distances between the color components and treats colors equally. Definition at line 125 of file plpixel24.h. References linalg::abs(), GetB(), GetG(), and GetR(). |
Here is the call graph for this function:
|
Definition at line 119 of file plpixel24.h. References m_Data, and PLBYTE. Referenced by Blend(), BoxDist(), operator PLPixel32(), and operator==(). |
|
Definition at line 113 of file plpixel24.h. References m_Data, and PLBYTE. Referenced by Blend(), BoxDist(), operator PLPixel32(), and operator==(). |
|
Definition at line 107 of file plpixel24.h. References m_Data, and PLBYTE. Referenced by Blend(), BoxDist(), operator PLPixel32(), and operator==(). |
|
Definition at line 151 of file plpixel24.h. |
Here is the call graph for this function:
|
Definition at line 161 of file plpixel24.h. |
|
Definition at line 142 of file plpixel24.h. References PLPixel32::GetB(), PLPixel32::GetG(), PLPixel32::GetR(), SetB(), SetG(), and SetR(). |
Here is the call graph for this function:
|
Definition at line 156 of file plpixel24.h. |
Here is the call graph for this function:
|
Definition at line 81 of file plpixel24.h. References m_Data, and PLBYTE. Referenced by PLPixel24(). |
|
Definition at line 101 of file plpixel24.h. References m_Data, and PLBYTE. Referenced by operator=(). |
|
Definition at line 95 of file plpixel24.h. References m_Data, and PLBYTE. Referenced by operator=(). |
|
Definition at line 89 of file plpixel24.h. References m_Data, and PLBYTE. Referenced by operator=(). |
|
Definition at line 67 of file plpixel24.h. Referenced by GetB(), GetG(), GetR(), Set(), SetB(), SetG(), and SetR(). |