Constructor
new ImageLibrary()
Creates a new ImageLibrary from image data.
- Source
Classes
Members
keys
Returns the image names in the library.
- Source
values
Returns the image data
- Source
Methods
clone() → {ImageLibrary}
Clones the image library.
- Source
Returns:
- Type:
- ImageLibrary
get(name) → {ImageData|undefined}
Gets the image data for a given image name.
Parameters:
Name | Type | Description |
---|---|---|
name | string |
- Source
Returns:
The data of the image.
- Type:
- ImageData |
undefined
remove(name)
Removes the image data for a given image name.
Parameters:
Name | Type | Description |
---|---|---|
name | string |
- Source
set(name, data)
Sets the image data for a given image name.
Parameters:
Name | Type | Description |
---|---|---|
name | string | |
data | ImageData |
- Source