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

BmpPaletteSampleValue Class Reference

a sample in a bmp palette (i.e. in a 1-,4- or 8-bit) file

#include <BmpPaletteSampleValue.h>

Inheritance diagram for BmpPaletteSampleValue:

BmpSampleValue SampleValue List of all members.

Public Member Functions

 BmpPaletteSampleValue (BYTE i)
SampleValuegetNearestTargetSampleValue (EmbValue t) const
std::string getName (void) const
BYTE getIndex (void) const
BYTE getRed (void) const
BYTE getGreen (void) const
BYTE getBlue (void) const

Private Member Functions

EmbValue calcEValue (BYTE idx) const

Private Attributes

ColorPalettePalette
BYTE Index

Constructor & Destructor Documentation

BmpPaletteSampleValue::BmpPaletteSampleValue BYTE  i  ) 
 


Member Function Documentation

EmbValue BmpPaletteSampleValue::calcEValue BYTE  idx  )  const [inline, private]
 

BYTE BmpPaletteSampleValue::getBlue void   )  const [inline, virtual]
 

get the blue color component

Implements BmpSampleValue.

BYTE BmpPaletteSampleValue::getGreen void   )  const [inline, virtual]
 

get the green color component

Implements BmpSampleValue.

BYTE BmpPaletteSampleValue::getIndex void   )  const [inline]
 

std::string BmpPaletteSampleValue::getName void   )  const [virtual]
 

return a short name uniquely identifying this sample value

Implements SampleValue.

SampleValue * BmpPaletteSampleValue::getNearestTargetSampleValue EmbValue  t  )  const [virtual]
 

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.

BYTE BmpPaletteSampleValue::getRed void   )  const [inline, virtual]
 

get the red color component

Implements BmpSampleValue.


Member Data Documentation

BYTE BmpPaletteSampleValue::Index [private]
 

ColorPalette* BmpPaletteSampleValue::Palette [private]
 


The documentation for this class was generated from the following files:
Generated on Thu Nov 13 23:44:23 2003 for steghide by doxygen 1.3.3