public static ImageData[] load(InputStream stream) { return new ImageLoader().load(stream); }
public static ImageData[] load(String filename) { return new ImageLoader().load(filename); }
public static ImageData[] load(InputStream stream) { return new ImageLoader().load(stream); }
public static ImageData[] load(String filename) { return new ImageLoader().load(filename); }
public static ImageData[] load(InputStream stream) { return new ImageLoader().load(stream); }
public static ImageData[] load(String filename) { return new ImageLoader().load(filename); }
public static ImageData[] load(InputStream stream) { return new ImageLoader().load(stream); }
public static ImageData[] load(String filename) { return new ImageLoader().load(filename); }
public static ImageData[] load(String filename) { return new ImageLoader().load(filename); }
public static ImageData[] load(InputStream stream) { return new ImageLoader().load(stream); }
public static ImageData[] load(String filename) { return new ImageLoader().load(filename); }
public static ImageData[] load(InputStream stream) { return new ImageLoader().load(stream); }
/** * Returns the image descriptor with the given relative path. * * @param fileSystemPath * The URL for the file system to the image. * @param loader * the loader used to get this data * @return ImageData[] */ ImageData[] getImageData(URL fileSystemPath, ImageLoader loader) { try { InputStream stream = fileSystemPath.openStream(); ImageData[] result = loader.load(stream); stream.close(); return result; } catch (IOException exception) { ProgressManagerUtil.logException(exception); return null; } }
/** * Load the animated image * * @throws IOException */ protected void loadImage() { if (loader == null) { loader = new ImageLoader(); InputStream is = BusyExecutor.class.getClassLoader().getResourceAsStream("at/spardat/xma/rpc/active-communication.gif"); try { loader.load(is); } finally { if (is != null) { try { is.close(); } catch (Exception ex) { throw new RuntimeException("Can not close image loader", ex); } } } } }
/** * Load the animated image * * @throws IOException */ protected void loadImage() { if (loader == null) { loader = new ImageLoader(); InputStream is = BusyExecutor.class.getClassLoader().getResourceAsStream("at/spardat/xma/rpc/active-communication.gif"); try { loader.load(is); } finally { if (is != null) { try { is.close(); } catch (Exception ex) { throw new RuntimeException("Can not close image loader", ex); } } } } }
public ImageAnimation(URL url, Color bg) throws CoreException { setDaemon(true); this.bg = bg; try { imageDataArray = loader.load(url.openStream()); } catch (Exception e) { throw new CoreException(GlancePlugin.createStatus( "Can't read image '" + url.toString() + "'", e)); } if (imageDataArray == null || imageDataArray.length <= 1) { throw new CoreException(GlancePlugin.createStatus("Image '" + url.toString() + "' is not an animated image")); } }
private static AnimationGif create(Control control, String fileName){ ImageLoader loader = new ImageLoader(); loader.load(fileName); if(loader.data == null || loader.data.length == 0){ return null; } return new AnimationGif(control, loader); }
private static AnimationGif create(Control control, InputStream in){ ImageLoader loader = new ImageLoader(); loader.load(in); if(loader.data == null || loader.data.length == 0){ return null; } return new AnimationGif(control, loader); }
public ImageData getData() { if (this.data != null) return this.data; try { ImageData[] images = new ImageLoader() .load(new ByteArrayInputStream(byteArray)); if (images.length > 0) this.data = images[0]; else this.data = ImageDescriptor.getMissingImageDescriptor() .getImageData(); } catch (SWTException exception) { this.data = ImageDescriptor.getMissingImageDescriptor() .getImageData(); } return this.data; }
loader.load(inputFile.getAbsolutePath());