Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members

PLPixel16 Class Reference

#include <plpixel16.h>

List of all members.

Public Member Functions

 PLPixel16 (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
PLPixel16 operator= (const PLPixel32 &Pix)
 operator PLPixel32 () const
PLPixel16 operator= (const PLPixel24 &Pix)
 operator PLPixel24 () const
bool operator== (const PLPixel16 Pix) const
bool operator!= (const PLPixel16 Pix) const
int BoxDist (const PLPixel16 Pix) const


Detailed Description

16 bit pixel class. A pixel in this class contains 5 bits of red, 6 of green and 5 of blue (in that order). The order of the color components is OS-dependent and defined in plpixeldefs.h. This class is meant to be fast, so all methods are inlined.

Definition at line 24 of file plpixel16.h.


Member Function Documentation

int PLPixel16::BoxDist const PLPixel16  Pix  )  const [inline]
 

Simple and fast 'distance' between two pixels. Just adds the distances between the color components and treats colors equally.

Definition at line 169 of file plpixel16.h.

References GetB(), GetG(), and GetR().


The documentation for this class was generated from the following file:
Generated on Mon Sep 13 16:16:42 2004 for paintlib by doxygen 1.3.2