Exemplo 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;
 }
Exemplo n.º 2
0
 @Override
 public void run() {
   try {
     _impl.succeed(_assets.load(_path));
   } catch (Exception e) {
     _impl.fail(e);
   }
 }
Exemplo 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;
 }