CVidPalette Class¶
Overview¶
Note
The CVidPalette class handles
The structure used for this class is CVidPalette
Quick Reference¶
Quick Ref |
void CVidPalette::CVidPalette(unsigned short nType) |
void CVidPalette::~CVidPalette() |
void CVidPalette::CalculateSubRanges() |
int CVidPalette::GetAdd(CVIDPALETTE_COLOR& rgbInv, CVIDIMG_PALETTEAFFECT* pAffectArgs, int& nShiftBack, unsigned long dwFlags) |
int CVidPalette::GetLight(CVIDPALETTE_COLOR& rgbLight, CVIDIMG_PALETTEAFFECT* pAffectArgs, unsigned long dwFlags) |
int CVidPalette::GetReservedEntries(unsigned long dwFlags) |
int CVidPalette::GetTint(CVIDPALETTE_COLOR& rgbTint, CVIDIMG_PALETTEAFFECT* pAffectArgs, int& nShiftBack, int& nMaxValue, unsigned long dwFlags) |
void CVidPalette::Realize(unsigned long* pDestPalette, unsigned long dwFlags, CVIDIMG_PALETTEAFFECT* pAffectArgs, unsigned long nTransVal, int bTile) |
void CVidPalette::RealizeRange(unsigned long* pDestPalette, unsigned long dwFlags, CVIDIMG_PALETTEAFFECT* pAffectArgs, unsigned long dwAlpha) |
void CVidPalette::RealizeRange3d(unsigned long* pDestPalette, unsigned long dwFlags, CVIDIMG_PALETTEAFFECT* pAffectArgs, unsigned long nTransVal) |
void CVidPalette::RealizeResource3d(unsigned long* pDestPalette, unsigned long dwFlags, CVIDIMG_PALETTEAFFECT* pAffectArgs, unsigned long nTransVal) |
void CVidPalette::SetAUCounter() |
void CVidPalette::SetPalette(CVidPalette& cPalette) |
void CVidPalette::SetPalette(RGBQUAD* pPalette, int nEntries, unsigned short nType) |
RGBQUAD CVidPalette::SetPaletteEntry(unsigned short nEntry, unsigned long rgbColor) |
void CVidPalette::SetRange(unsigned short nRange, unsigned short nValue, CVidBitmap& bmpMasterPalette) |
void CVidPalette::SetType(unsigned short nType) |
Constructors¶
Name |
Description |
Constructs a |
|
Destroys a |
CVidPalette::CVidPalette¶
Constructs a CVidPalette
object
void CVidPalette::CVidPalette(unsigned short nType);
Parameters
unsigned short
nType -
Remarks
Constructs a CVidPalette
object
CVidPalette::~CVidPalette¶
Destroys the CVidPalette
object
void CVidPalette::~CVidPalette();
Remarks
Destroys the CVidPalette
object
Methods¶
Name |
Description |
CVidPalette::CalculateSubRanges¶
void CVidPalette::CalculateSubRanges();
Remarks
CVidPalette::GetAdd¶
int CVidPalette::GetAdd(
CVIDPALETTE_COLOR& rgbInv,
CVIDIMG_PALETTEAFFECT* pAffectArgs,
int& nShiftBack,
unsigned long dwFlags);
Parameters
CVIDPALETTE_COLOR& rgbInv -
CVIDIMG_PALETTEAFFECT* pAffectArgs -
int
& nShiftBack -unsigned long
dwFlags -
Return Value
Returns int
Remarks
CVidPalette::GetLight¶
int CVidPalette::GetLight(
CVIDPALETTE_COLOR& rgbLight,
CVIDIMG_PALETTEAFFECT* pAffectArgs,
unsigned long dwFlags);
Parameters
CVIDPALETTE_COLOR& rgbLight -
CVIDIMG_PALETTEAFFECT* pAffectArgs -
unsigned long
dwFlags -
Return Value
Returns int
Remarks
CVidPalette::GetReservedEntries¶
int CVidPalette::GetReservedEntries(unsigned long dwFlags);
Parameters
unsigned long
dwFlags -
Return Value
Returns int
Remarks
CVidPalette::GetTint¶
int CVidPalette::GetTint(
CVIDPALETTE_COLOR& rgbTint,
CVIDIMG_PALETTEAFFECT* pAffectArgs,
int& nShiftBack,
int& nMaxValue,
unsigned long dwFlags);
Parameters
CVIDPALETTE_COLOR& rgbTint -
CVIDIMG_PALETTEAFFECT* pAffectArgs -
int
& nShiftBack -int
& nMaxValueunsigned long
dwFlags -
Return Value
Returns int
Remarks
CVidPalette::Realize¶
void CVidPalette::Realize(
unsigned long* pDestPalette,
unsigned long dwFlags,
CVIDIMG_PALETTEAFFECT* pAffectArgs,
unsigned long nTransVal,
int bTile);
Parameters
unsigned long
* pDestPalette -unsigned long
dwFlags -CVIDIMG_PALETTEAFFECT* pAffectArgs -
unsigned long
nTransVal -int
bTile -
Remarks
CVidPalette::RealizeRange¶
void CVidPalette::RealizeRange(
unsigned long* pDestPalette,
unsigned long dwFlags,
CVIDIMG_PALETTEAFFECT* pAffectArgs,
unsigned long dwAlpha);
Parameters
unsigned long
* pDestPalette -unsigned long
dwFlags -CVIDIMG_PALETTEAFFECT* pAffectArgs -
unsigned long
dwAlpha -
Remarks
CVidPalette::RealizeRange3d¶
void CVidPalette::RealizeRange3d(
unsigned long* pDestPalette,
unsigned long dwFlags,
CVIDIMG_PALETTEAFFECT* pAffectArgs,
unsigned long nTransVal);
Parameters
unsigned long
* pDestPalette -unsigned long
dwFlags -CVIDIMG_PALETTEAFFECT* pAffectArgs -
unsigned long
nTransVal -
Remarks
CVidPalette::RealizeResource3d¶
void CVidPalette::RealizeResource3d(
unsigned long* pDestPalette,
unsigned long dwFlags,
CVIDIMG_PALETTEAFFECT* pAffectArgs,
unsigned long nTransVal);
Parameters
unsigned long
* pDestPalette -unsigned long
dwFlags -CVIDIMG_PALETTEAFFECT* pAffectArgs -
unsigned long
nTransVal -
Remarks
CVidPalette::SetAUCounter¶
void CVidPalette::SetAUCounter();
Remarks
CVidPalette::SetPalette¶
void CVidPalette::SetPalette(CVidPalette& cPalette);
Parameters
CVidPalette& cPalette -
Remarks
CVidPalette::SetPalette¶
void CVidPalette::SetPalette(
RGBQUAD* pPalette,
int nEntries,
unsigned short nType);
Parameters
RGBQUAD* pPalette -
int
nEntries -unsigned short
nType -
Remarks
CVidPalette::SetPaletteEntry¶
RGBQUAD CVidPalette::SetPaletteEntry(
unsigned short nEntry,
unsigned long rgbColor);
Parameters
unsigned short
nEntry -unsigned long
rgbColor -
Return Value
Returns RGBQUAD
Remarks
CVidPalette::SetRange¶
void CVidPalette::SetRange(
unsigned short nRange,
unsigned short nValue,
CVidBitmap& bmpMasterPalette);
Parameters
unsigned short
nRange -unsigned short
nValue -CVidBitmap& bmpMasterPalette -
Remarks
CVidPalette::SetType¶
void CVidPalette::SetType(unsigned short nType);
Parameters
unsigned short
nType -
Remarks