|
Author |
Topic: about save() (Read 239 times) |
|
betaruce Guest
|
about save()
« on: Mar 31st, 2004, 6:13pm » |
|
the ref said that save() cannot be used in web browser but can be used in applications i would like to know what exactly is the meaning of "application"?
|
|
|
|
arielm
|
Re: about save()
« Reply #1 on: Mar 31st, 2004, 6:48pm » |
|
when you run your sketch from within the processing environment: it's an "application" + in general, it's possible to execute any java program as an application (i.e. not as an applet within a browser)
|
Ariel Malka | www.chronotext.org
|
|
|
betaruce Guest
|
Re: about save()
« Reply #2 on: Apr 1st, 2004, 6:05pm » |
|
i try that in the processing environment but seems nth has been generated... is there anything I hv missed? i do sth like void keyPressed(){save('fff.tif');} also in what way can I run the java program as an application normally
|
|
|
|
fry
|
Re: about save()
« Reply #3 on: Apr 2nd, 2004, 5:29pm » |
|
not sure i quite follow your question, but these are the options for save/saveFrame: saveFrame() will save your images to a a file named as screen-NNNN.tif, where NNNN is the frame number. saveFrame("blah-###.tif"); will replace the pound signs with the numbers, and save things as blah-000.tif, blah-001.tif, etc. save("filename.tif"); will save any BImage to a file. since the applet window is itself a BImage, this works for that as well. also be sure to use them at the *end* of loop. if you do it when the key is pressed, you might get a half-drawn image.
|
|
|
|
|