FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Programs
(Moderators: fry, REAS)
   screenGrab() online ?
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: screenGrab() online ?  (Read 505 times)
ezdac


screenGrab() online ?
« on: Sep 1st, 2002, 12:32pm »

i tried to grab the screen of the applet i put online, where users can draw a picture, and then save it by pressing space bar. but i couldn't find any output file on the server, does this function works online, do i have to modify my code ??
 
fry


WWW
Re: screenGrab() online ?
« Reply #1 on: Sep 1st, 2002, 10:35pm »

screenGrab() isn't available in applets, because it writes to a file, which is a big no-no under the java security model.
 
the solution is a bit difficult.. you'd want to grab the pixels() array, and then somehow send that data to a web server. i've done this in the past but it requires a bit of additional scripting etc on the server.
 
Pages: 1 

« Previous topic | Next topic »