next up previous contents
Next: Reusing the web browser Up: Tutorials Previous: Changing screen resolutions   Contents

Screen capture

SWFKit Pro supports to capture screen and copy onto clipboard or save to an Image object. Besides screen capture, it can also capture the current movie. The following code shows how to capture screen or the current movie and get an Image object.
import SWFKit.*;

var image = Image.captureScreen();
// Load the captured image into the current movie.
image.loadImage(1);
// Save the captured image to a disk file
image.save("c:\\screen.jpg");



Copyright ©2000-2007 Shanghai TopCMM Software Technologies. All Rights Reserved.