CODSprite Class
class CODSprite: public CObject
Wraps a DIB object and implements support for transparency.Defined in: OdDib.h
Class Members
CODSprite(sfl::SECDib* pDib = NULL, const COLORREF transColor = RGB(255,0,255))
Default constructor.
virtual ~CODSprite()
Destructor.
void SetDib(sfl::SECDib* pDib)
Sets the DIB for this sprite.
void SetTransparentColor(const COLORREF transColor)
Set the transparent color.
COLORREF GetTransparentColor() const
Get the transparent color.
void TransparentCopy(CDC *pDstDC, int dstX, int dstY, int width, int height, int srcX, int srcY)
BitBlt with transparency to a device context.
void TransparentStretch(CDC *pDstDC, int dstX, int dstY, int dstWidth, int dstHeight, int srcX, int srcY, int srcWidth, int srcHeight)
StretchBlt with transparency to a device context.
BOOL CreateSpriteMasks()
Create AND and OR sprite masks.
void DestroySpriteMasks()
Destroy sprite masks.
virtual void Serialize(CArchive& ar)
Serializes the image component.
sfl::SECDib* m_pDib
Device-independant bitmap.
COLORREF m_transColor
Transparent color used for creating sprite masks.
sfl::SECDib * m_pAndMask
Logical-AND sprite mask.
sfl::SECDib * m_pOrMask
Logical-OR sprite mask.