CODImageEntry Class

class CODImageEntry: public CObject, public IRefCount

A container for an image object that is stored in cache. Provides reference counting for the image. Also saves the resource ID or filename used to load the image for the purpose of doing lookups in the cache.

Defined in: OdImageCache.h

Class Members

 CODImageEntry()

Constructor

 ~CODImageEntry()

Destructor

BOOL  LoadImage(UINT nID)

Load the image from a resource.

BOOL  LoadImage(LPCTSTR lpszFileName)

Load the image from a file.

BOOL  LoadImage(CBitmap& pBitmap, CDC* pDC=NULL)

Load an image from a bitmap object.

BOOL  LoadIcon(UINT nID, const COLORREF crFill = RGB(255,255,255))

Load the image from an icon resource.

BOOL  LoadIcon(LPCTSTR lpszFileName, const COLORREF crFill = RGB(255,255,255))

Load the image from an icon file.

BOOL  FillIcon(const COLORREF crFill = RGB(255,255,255))

Fill transparent areas of the icon with the given fill color.

BOOL  operator==(const CODImageEntry &ampsrc)

Compare two image entries for equality.

int  GetRefCount() const

Return reference count.

sfl::SECImage*  GetImage()

Get a pointer to the image.

CODDib*  GetDib()

Get a pointer to the image.

void  Serialize(CArchive& ar)

Save and restore image entry.

inline ULONG STDMETHODCALLTYPE AddRef()

Add a reference to this object.

inline ULONG STDMETHODCALLTYPE Release()

Release a reference to this object.

CODDib m_image

The  CODDib object which comprises the actual image.

UINT m_nID

Resource ID of image (if applicable).

CString m_szFileName

Filename of image (if applicable).