BCL: updated location and image APIs

This commit is contained in:
Stanimir Karoserov
2014-04-16 18:46:07 +03:00
parent 7fd0d2e251
commit 42d90285c5
10 changed files with 212 additions and 94 deletions

View File

@@ -32,7 +32,7 @@ export class http {
var d = promises.defer<image_module.Image>();
http.get(url, r => {
var image = new image_module.Image();
image.loadFromBitmap(r);
image.loadFromNativeBitmap(r);
d.resolve(image);
}, e => d.reject(e));
return d.promise();