dmISnapshot Class Reference

interface to manupulate individual image cache More...

#include <CCI_Snapshot.h>

Inherits dmINotify.

List of all members.

Public Member Functions

bool UpdateCache (const char_t *file)
 Update the cache with the original image.
bool LoadFromCache (const char_t *file)
 Create the cache file if it does not exists.
bool ClearCache (const char_t *file=NULL)
 Delete physically the cached image.
bool GetProperties (dm_param key, cci_object *propertylist)
 Return properties of the original image.
bool Synchronize ()
 Synchronize between original image and cached image.
const char_t * GetCacheName ()
 Return the cache physical path.
const char_t * GetImagePath ()
 Return the url of the original image.
dm_uint GetImageWidth ()
 Return the width (in pixels) of the original image.
dm_uint GetImageHeight ()
 Return the height (in pixels) of the original image.
dm_uint GetImageFormat ()
 Return the format of the original image.


Detailed Description

interface to manupulate individual image cache

You should never instanciate directly a dmISnapshot object : use

See also:
dmICacheManager.


Member Function Documentation

bool dmISnapshot::LoadFromCache const char_t *  file  )  [inline]
 

Create the cache file if it does not exists.

The cache will be updated only if the cached image does not exists. For synchronizing between original image and cached image

See also:
Synchronize
The file parameter may be set to null or empty string if the object has already been initialized with a valid image url.

bool dmISnapshot::Synchronize  )  [inline]
 

Synchronize between original image and cached image.

Note that the cache must exists. A cached image can be created by calling either the LoadFromCache() or the UpdateCache() method.

bool dmISnapshot::UpdateCache const char_t *  file  )  [inline]
 

Update the cache with the original image.

The file parameter may be set to null or empty string if the object has already been initialized with a valid image url.


Generated on Tue May 9 12:34:57 2006 for Daim Library Module Set by  doxygen 1.4.6-NO