FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
      Language \ Environment \ Libraries \ Comparison
 
   
   
Abridged (A-Z) \ Complete (A-Z)  
   
  Reference for Processing (BETA) version 91+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.  
Name  

save()

   
Examples  
line(20, 20, 80, 80); 
// Saves a TIFF file named "diagonal.tif" 
save("diagonal.tif"); 
// Saves a TARGA file named "cross.tga" 
line(80, 20, 20, 80); 
save("cross.tga"); 

Description   Makes an image from the display window. Images are saved in TIFF or TARGA format depending on the extension of the parameter filename. If no extention is included in the filename, the image will save as TIFF and .tif will be added to the name. This file is 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 save() while running the program in a web browser.
   
Syntax  
save(filename)
   
Parameters  
filename   String: any sequence of letters and numbers

   
Returns   None
   
Usage   Application
   
Related   saveFrame()
 
 






   
 
Updated: Fri Jul 15 16:36:06 PDT 2005
 
 








Creative Commons License
 
  Processing is an open project initiated by Ben Fry and Casey Reas  
  © Info