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