In This Topic
Adds data, which are associated with specified key, to the image cache.
Syntax
var instance = new Vintasoft.Imaging.Utils.WebImageCacheManagerJS();
var value; // Type: any
// Parameters
var image; // Type: WebImageJS
var key; // Type: string
var data; // Type: object
value = instance.addImageData(image, key, data);
function addImageData(
: WebImageJS,
: string,
: object
) : any;
Parameters
- image
- A WebImageJS object, which specifies the image cache, where data must be added.
- key
- A key in image cache.
- data
- A data, which must be added to the image cache.
Exceptions
Exception | Description |
| Thrown if data is null. |
| Thrown if cache manager already contains data with specified key. |
Browser Compatibility
See Also