#include <plpixel32.h>
Public Member Functions | |
PLPixel32 (PLBYTE r, PLBYTE g, PLBYTE b, PLBYTE a) | |
PLPixel32 (PLBYTE r, PLBYTE g, PLBYTE b) | |
void | Set (PLBYTE r, PLBYTE g, PLBYTE b, PLBYTE a) |
void | Set (PLBYTE r, PLBYTE g, PLBYTE b) |
void | SetR (PLBYTE r) |
void | SetG (PLBYTE g) |
void | SetB (PLBYTE b) |
void | SetA (PLBYTE a) |
PLBYTE | GetR () const |
PLBYTE | GetG () const |
PLBYTE | GetB () const |
PLBYTE | GetA () const |
bool | operator== (const PLPixel32 Pix) const |
bool | operator!= (const PLPixel32 Pix) const |
int | BoxDist (const PLPixel32 Pix) const |
Static Public Member Functions | |
PLPixel32 | Blend (int Factor, const PLPixel32 Pix1, const PLPixel32 Pix2) |
Definition at line 23 of file plpixel32.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 161 of file plpixel32.h. |
|
Simple and fast 'distance' between two pixels. Just adds the distances between the color components and treats colors equally. Definition at line 154 of file plpixel32.h. |