A Screen Camera in Java

Today I wrote a little class
that allows to repeatedly capture the screen content and write the result to a flash file.
It created a flash video with one frame per second (this is a bit crude) with one frame per screen shot taken. It is based on JavaSWF2 a nice wrapper around the SWF file format. To run you need to get the JavaSWF2 jarfile. Then you go:

camera = new ScreenCamera(new File("test.swf"));
doStuff();
camera.takeScreenShot();
doMoreStuff();
camera.takeScreenShot();
camera.close();

It might be useful for testing and creating tutorials.


Posted

in

by

Tags:

Comments

3 responses to “A Screen Camera in Java”

  1. […] wuetender-junger-mann.de » Blog Archive » A Screen Camera in Java […]

  2. […] – bookmarked by 3 members originally found by instinct1 on 2008-07-30 Felix Leipold: A Screen Camera in Java https://wuetender-junger-mann.de/wordpress/?p=585 – bookmarked by 1 members originally found by […]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.