/** * creates the PNG tempfile only when needed. * * @return absolute path to stored tempfile * @throws IOException if not found * @deprecated use getFile() instead */ @Deprecated public String getFilename() throws IOException { return getFile(); }
/** * stores the lastScreenImage in the given path with the given name * * @param path path to use * @param name file name (.png is added if not there) * @return the absolute file name * @throws java.io.IOException if not possible */ public String getLastScreenImageFile(String path, String name) throws IOException { return getScreen().getLastScreenImageFromScreen().getFile(path, name); }
/** * stores the lastScreenImage in the current bundle path with the given name * * @param name file name (.png is added if not there) * @return the absolute file name * @throws java.io.IOException if not possible */ public String getLastScreenImageFile(String name) throws IOException { return getScreen().getLastScreenImageFromScreen().getFile(ImagePath.getBundlePath(), name); }
shot.getFile(path, name); } else { shot.saveInBundle(name);
return null; simg.getFile(path, img.getImageName()); Image.set(img); if (img.isValid()) {