14 map<wstring, Gdiplus::Image*> _imageCache;
40 BOOL
addImage(
const wstring& key,
const wstring& filePath);
ImageAlignment
Definition Common.h:121
Definition Graphics.h:161
void clear()
Clears all cached images, releasing their memory.
BOOL drawImage(Graphics *g, const wstring &key, Bounds rect, const ImageAlignment &alignment, BOOL showBorder)
Draws a cached image identified by key onto a device context.
virtual ~ImageCache()
Destructor clears and releases all cached images.
BOOL addImage(const wstring &key, const wstring &filePath)
Loads an image from a file and adds it to the cache with the specified key.
ImageCache()
Constructs an empty ImageCache.