Esempio n. 1
0
 public Image getRemoteImage(String url, int width, int height) {
   Exception error =
       new Exception(
           "Remote image loading not yet supported: " + url + "@" + width + "x" + height);
   ImageImpl image = createImage(false, width, height, url);
   image.fail(error);
   return image;
 }
Esempio n. 2
0
 @Override
 public void run() {
   try {
     _impl.succeed(_assets.load(_path));
   } catch (Exception e) {
     _impl.fail(e);
   }
 }
Esempio n. 3
0
 public Image getImageSync(String path) {
   ImageImpl image = createImage(false, 0, 0, path);
   try {
     image.succeed(load(path));
   } catch (Exception e) {
     image.fail(e);
   }
   return image;
 }