a sample in a bmp palette (i.e. in a 1-,4- or 8-bit) file
#include <BmpPaletteSampleValue.h>
|
| EmbValue | EValue |
| | the bit that is embedded in this sample value - must be set in constructor of derived class More...
|
| |
| UWORD32 | Key |
| | the key of this sample value - must be different for two different sample values - must be set in constructor of derived class More...
|
| |
§ BmpPaletteSampleValue()
| BmpPaletteSampleValue::BmpPaletteSampleValue |
( |
BYTE |
i | ) |
|
§ calcEValue()
| EmbValue BmpPaletteSampleValue::calcEValue |
( |
BYTE |
idx | ) |
const |
|
inlineprivate |
§ getBlue()
| BYTE BmpPaletteSampleValue::getBlue |
( |
void |
| ) |
const |
|
inlinevirtual |
§ getGreen()
| BYTE BmpPaletteSampleValue::getGreen |
( |
void |
| ) |
const |
|
inlinevirtual |
§ getIndex()
| BYTE BmpPaletteSampleValue::getIndex |
( |
void |
| ) |
const |
|
inline |
§ getName()
| std::string BmpPaletteSampleValue::getName |
( |
void |
| ) |
const |
|
virtual |
return a short name uniquely identifying this sample value
Implements SampleValue.
§ getNearestTargetSampleValue()
get the nearest (with the least distance to this sample value) sample value whose embedded value equals the specified target
- Parameters
-
| t | the target embedded value |
If two or more target sample values have equal distance each of them should be returned with equal probability.
The returned SampleValue object should be deleted by the callser.
Implements SampleValue.
§ getRed()
| BYTE BmpPaletteSampleValue::getRed |
( |
void |
| ) |
const |
|
inlinevirtual |
§ Index
| BYTE BmpPaletteSampleValue::Index |
|
private |
§ Palette
The documentation for this class was generated from the following files: