#include <plpixel24.h>
Public Member Functions | |
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 |
Static Public Member Functions | |
PLPixel24 | Blend (int Factor, const PLPixel24 Pix1, const PLPixel24 Pix2) |
Definition at line 22 of file plpixel24.h.
|
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. |
|
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. |