The attached ImageLoader
helper will start fetching an image and return an image that is resolved once the image is loaded:
ImageLoader.load('/my/image.png').then(function(image) {
...
});
The image
argument that is yielded to the promise callback is an
HTMLImageElement
Show archive.org snapshot
. This is the kind of object you get when you call new Image()
.
Posted by Henning Koch to makandra dev (2016-06-13 13:48)