public boolean saveImpl(String filename) { return super.save(filename); // ASYNC save frame using PBOs not yet available on Android
/** * Intercepts any relative paths to make them absolute (relative * to the sketch folder) before passing to save() in PImage. * (Changed in 0100) */ public void save(String filename) { g.save(savePath(filename)); }
/** */ public void saveFrame() { try { g.save(savePath("screen-" + nf(frameCount, 4) + ".tif")); } catch (SecurityException se) { System.err.println("Can't use saveFrame() when running in a browser, " + "unless using a signed applet."); } }
/** * ( begin auto-generated from save.xml ) * * Saves an image from the display window. Images are saved in TIFF, TARGA, * JPEG, and PNG format depending on the extension within the * <b>filename</b> parameter. For example, "image.tif" will have a TIFF * image and "image.png" will save a PNG image. If no extension is included * in the filename, the image will save in TIFF format and <b>.tif</b> will * be added to the name. These files are saved to the sketch's folder, * which may be opened by selecting "Show sketch folder" from the "Sketch" * menu. It is not possible to use <b>save()</b> while running the program * in a web browser. * <br/> images saved from the main drawing window will be opaque. To save * images without a background, use <b>createGraphics()</b>. * * ( end auto-generated ) * @webref output:image * @param filename any sequence of letters and numbers * @see PApplet#saveFrame() * @see PApplet#createGraphics(int, int, String) */ public void save(String filename) { g.save(savePath(filename)); }
/** * Grab an image of what's currently in the drawing area and save it * as a .tif or .tga file. * <p/> * Best used just before endDraw() at the end of your draw(). * This can only create .tif or .tga images, so if neither extension * is specified it defaults to writing a tiff and adds a .tif suffix. */ public void saveFrame() { try { g.save(savePath("screen-" + nf(frameCount, 4) + ".tif")); } catch (SecurityException se) { System.err.println("Can't use saveFrame() when running in a browser, " + "unless using a signed applet."); } }
/** * Save the current frame as a .tif or .tga image. * <p/> * The String passed in can contain a series of # signs * that will be replaced with the screengrab number. * <PRE> * i.e. saveFrame("blah-####.tif"); * // saves a numbered tiff image, replacing the * // #### signs with zeros and the frame number </PRE> */ public void saveFrame(String what) { try { g.save(savePath(insertFrame(what))); } catch (SecurityException se) { System.err.println("Can't use saveFrame() when running in a browser, " + "unless using a signed applet."); } }
void save() { if (showContents && canvas != null) { PGraphics pg = intf.createCanvas((int)w, h.getCeil(), MiraApp.RENDERER, MiraApp.SMOOTH_LEVEL); draw(pg); String imgName = var.getName() + "-" + rowVar.getName() + ".png"; String filename = Paths.get(mira.project.dataFolder, imgName).toString(); pg.save(filename); } }
g.save(savePath(insertFrame(filename))); } catch (SecurityException se) { System.err.println("Can't use saveFrame() when running in a browser, " +