an (abstract) sample value in a bmp file
#include <BmpSampleValue.h>
Public Member Functions | |
BmpSampleValue (void) | |
virtual UWORD32 | calcDistance (const SampleValue *s) const |
virtual unsigned char | getRed (void) const =0 |
virtual unsigned char | getGreen (void) const =0 |
virtual unsigned char | getBlue (void) const =0 |
BmpSampleValue::BmpSampleValue | ( | void | ) | [inline] |
UWORD32 BmpSampleValue::calcDistance | ( | const SampleValue * | s | ) | const [virtual] |
calculate the distance between the sample value s and this sample value
s | a sample value of the same type as this |
Implements SampleValue.
Reimplemented in BmpRGBSampleValue.
virtual unsigned char BmpSampleValue::getBlue | ( | void | ) | const [pure virtual] |
get the blue color component
Implemented in BmpPaletteSampleValue, and BmpRGBSampleValue.
virtual unsigned char BmpSampleValue::getGreen | ( | void | ) | const [pure virtual] |
get the green color component
Implemented in BmpPaletteSampleValue, and BmpRGBSampleValue.
virtual unsigned char BmpSampleValue::getRed | ( | void | ) | const [pure virtual] |
get the red color component
Implemented in BmpPaletteSampleValue, and BmpRGBSampleValue.