#include <BitmapUtil.h>
Public Member Functions | |
virtual | ~BitmapBase () |
CString | getName () const |
virtual long | getWidth () const |
virtual long | getHeight () const |
virtual bool | isInitialized () const =0 |
bool | hasTransparentColor () const |
bool | hasBackgroundColor () const |
COLORREF | getTransparentColor () const |
COLORREF | getBackgroundColor () const |
virtual void | draw (Gdiplus::Graphics *gdip, CDC *pDC, const CRect &srcRect, const CRect &dstRect, DWORD dwOpCode, DWORD dwModifierFlags=MF_NOOP) const =0 |
void | draw (Gdiplus::Graphics *gdip, CDC *pDC, const CRect &cRect, const TileVector &vecTiles, DWORD dwModifierFlags=MF_NOOP) const |
Protected Member Functions | |
BitmapBase (const CString &strName) | |
BitmapBase (const CString &strName, COLORREF crColor, bool bIsTransparent) | |
BitmapBase (const CString &strName, COLORREF crTransparentColor, COLORREF crBackgroundColor) | |
BitmapBase (const CString &strName, COLORREF crTransparentColor, COLORREF crGrayedColor, bool isMasked) | |
void | setSize (long lWidth, long lHeight) |
void | setName (const CString &strName) |
Gdiplus::ColorMatrix | GetGreyFadeMatrix (COLORREF greyColor) const |
Protected Attributes | |
bool | m_bHasTransparentColor |
COLORREF | m_crTransparentColor |
bool | m_bHasBackgroundColor |
COLORREF | m_crBackgroundColor |
bool | m_bHasGrayedColor |
COLORREF | m_crGrayedColor |
long | m_lWidth |
long | m_lHeight |
CString | m_strName |
Definition at line 142 of file BitmapUtil.h.
DecoratorSDK::BitmapBase::BitmapBase | ( | const CString & | strName | ) | [protected] |
Definition at line 128 of file BitmapUtil.cpp.
DecoratorSDK::BitmapBase::BitmapBase | ( | const CString & | strName, | |
COLORREF | crColor, | |||
bool | bIsTransparent | |||
) | [protected] |
Definition at line 135 of file BitmapUtil.cpp.
DecoratorSDK::BitmapBase::BitmapBase | ( | const CString & | strName, | |
COLORREF | crTransparentColor, | |||
COLORREF | crBackgroundColor | |||
) | [protected] |
Definition at line 142 of file BitmapUtil.cpp.
DecoratorSDK::BitmapBase::BitmapBase | ( | const CString & | strName, | |
COLORREF | crTransparentColor, | |||
COLORREF | crGrayedColor, | |||
bool | isMasked | |||
) | [protected] |
Definition at line 149 of file BitmapUtil.cpp.
DecoratorSDK::BitmapBase::~BitmapBase | ( | ) | [virtual] |
Definition at line 157 of file BitmapUtil.cpp.
void DecoratorSDK::BitmapBase::draw | ( | Gdiplus::Graphics * | gdip, | |
CDC * | pDC, | |||
const CRect & | cRect, | |||
const TileVector & | vecTiles, | |||
DWORD | dwModifierFlags = MF_NOOP | |||
) | const |
Definition at line 196 of file BitmapUtil.cpp.
virtual void DecoratorSDK::BitmapBase::draw | ( | Gdiplus::Graphics * | gdip, | |
CDC * | pDC, | |||
const CRect & | srcRect, | |||
const CRect & | dstRect, | |||
DWORD | dwOpCode, | |||
DWORD | dwModifierFlags = MF_NOOP | |||
) | const [pure virtual] |
Implemented in DecoratorSDK::BitmapDIB, DecoratorSDK::BitmapMasked, DecoratorSDK::BitmapGen, and DecoratorSDK::BitmapRES.
COLORREF DecoratorSDK::BitmapBase::getBackgroundColor | ( | ) | const |
Definition at line 191 of file BitmapUtil.cpp.
Gdiplus::ColorMatrix DecoratorSDK::BitmapBase::GetGreyFadeMatrix | ( | COLORREF | greyColor | ) | const [protected] |
Definition at line 304 of file BitmapUtil.cpp.
long DecoratorSDK::BitmapBase::getHeight | ( | ) | const [virtual] |
Reimplemented in DecoratorSDK::BitmapMasked.
Definition at line 171 of file BitmapUtil.cpp.
CString DecoratorSDK::BitmapBase::getName | ( | ) | const |
Definition at line 161 of file BitmapUtil.cpp.
COLORREF DecoratorSDK::BitmapBase::getTransparentColor | ( | ) | const |
Definition at line 186 of file BitmapUtil.cpp.
long DecoratorSDK::BitmapBase::getWidth | ( | ) | const [virtual] |
Reimplemented in DecoratorSDK::BitmapMasked.
Definition at line 166 of file BitmapUtil.cpp.
bool DecoratorSDK::BitmapBase::hasBackgroundColor | ( | ) | const |
Definition at line 181 of file BitmapUtil.cpp.
bool DecoratorSDK::BitmapBase::hasTransparentColor | ( | ) | const |
Definition at line 176 of file BitmapUtil.cpp.
virtual bool DecoratorSDK::BitmapBase::isInitialized | ( | ) | const [pure virtual] |
Implemented in DecoratorSDK::BitmapDIB, DecoratorSDK::BitmapMasked, DecoratorSDK::BitmapGen, and DecoratorSDK::BitmapRES.
void DecoratorSDK::BitmapBase::setName | ( | const CString & | strName | ) | [protected] |
Definition at line 296 of file BitmapUtil.cpp.
void DecoratorSDK::BitmapBase::setSize | ( | long | lWidth, | |
long | lHeight | |||
) | [protected] |
Definition at line 290 of file BitmapUtil.cpp.
bool DecoratorSDK::BitmapBase::m_bHasBackgroundColor [protected] |
Definition at line 147 of file BitmapUtil.h.
bool DecoratorSDK::BitmapBase::m_bHasGrayedColor [protected] |
Definition at line 149 of file BitmapUtil.h.
bool DecoratorSDK::BitmapBase::m_bHasTransparentColor [protected] |
Definition at line 145 of file BitmapUtil.h.
COLORREF DecoratorSDK::BitmapBase::m_crBackgroundColor [protected] |
Definition at line 148 of file BitmapUtil.h.
COLORREF DecoratorSDK::BitmapBase::m_crGrayedColor [protected] |
Definition at line 150 of file BitmapUtil.h.
COLORREF DecoratorSDK::BitmapBase::m_crTransparentColor [protected] |
Definition at line 146 of file BitmapUtil.h.
long DecoratorSDK::BitmapBase::m_lHeight [protected] |
Definition at line 152 of file BitmapUtil.h.
long DecoratorSDK::BitmapBase::m_lWidth [protected] |
Definition at line 151 of file BitmapUtil.h.
CString DecoratorSDK::BitmapBase::m_strName [protected] |
Definition at line 153 of file BitmapUtil.h.