Constructor
new HtmlImageLoader(stage)
Parameters:
Name | Type | Description |
---|---|---|
stage |
Stage | The stage which is going to request images to be loaded. |
- Implements:
Methods
loadImage(url, rectnullable, done) → {function}
Loads an Asset from an image.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
url |
string | The image URL. |
|
rect |
Rect |
<nullable> |
A Rect describing a portion of the image, or null to use the full image. |
done |
function | The callback. |
- Implements:
Returns:
A function to cancel loading.
- Type
- function