|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectMovieCapturer
public class MovieCapturer
Class that captures a movie to a series of jpg frames Copyright Georgia Institute of Technology 2007
| Constructor Summary | |
|---|---|
MovieCapturer(String directory)
Constructor that takes the directory to write the frames to |
|
MovieCapturer(String directory,
String baseName)
Constructor that takes the directory to write to and the base name to use for the files |
|
| Method Summary | |
|---|---|
void |
captureMovie()
Method to capture a movie until the done flag is set to true |
void |
captureMovie(int numSeconds)
Method to capture a movie for the passed number of seconds |
void |
captureMovie(int x1,
int y1,
int width,
int height)
Method to capture a movie until the done flag is set to true |
void |
captureMovie(int x1,
int y1,
int width,
int height,
int numSeconds)
Method to capture a movie in a rectangular region for the passed number of seconds |
BufferedImage |
captureRegion()
Method to capture a region of the screen |
BufferedImage |
captureRegion(int x1,
int y1,
int width,
int height)
Method to capture a part of the screen |
BufferedImage |
captureScreen()
Method to capture the entire screen |
FrameSequencer |
getFrameSequencer()
Method to get the current directory |
int |
getFramesPerSecond()
Method to get the number of frames per second |
Rectangle |
getRegion()
Method to get the region to capture |
static void |
main(String[] args)
|
void |
playMovie()
Method to play the captured movie |
void |
run()
Method to run the captured movie |
void |
setFramesPerSecond(int frameRate)
Method to set the number of frames per second |
void |
setRegion(Rectangle theRegion)
Method to set the region to capture (makes sure that the width and height is a multiple of 4 for compression later |
void |
startCapture()
Method to start capturing the movie |
void |
startCapture(int numSeconds)
Method to start captureing the movie and continue for the passed number of seconds |
void |
stopCapture()
Method to stop capturing the movie |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MovieCapturer(String directory)
directory - the directory to write to
public MovieCapturer(String directory,
String baseName)
directory - the directory to write tobaseName - the name to use for the files| Method Detail |
|---|
public FrameSequencer getFrameSequencer()
getFrameSequencer in interface VideoCapturerpublic int getFramesPerSecond()
getFramesPerSecond in interface VideoCapturerpublic void setFramesPerSecond(int frameRate)
setFramesPerSecond in interface VideoCapturerframeRate - the number of frames per secondpublic Rectangle getRegion()
getRegion in interface VideoCapturer
public BufferedImage captureScreen()
throws Exception
captureScreen in interface VideoCapturerException
public BufferedImage captureRegion(int x1,
int y1,
int width,
int height)
throws AWTException
x1 - the top left xy1 - the top left ywidth - the width of the rectangle to captureheight - the height of the rectangle to capture
AWTException
public BufferedImage captureRegion()
throws Exception
Exceptionpublic void captureMovie()
public void run()
public void captureMovie(int numSeconds)
numSeconds - the number of seconds to capture
public void captureMovie(int x1,
int y1,
int width,
int height)
x1 - the top left x valuey1 - the top left y valuewidth - the width of the region to captureheight - the height of the region to capture
public void captureMovie(int x1,
int y1,
int width,
int height,
int numSeconds)
x1 - the top left x valuey1 - the top left y valuewidth - the width of the region to captureheight - the height of the region to capturenumSeconds - the number of seconds to capturepublic void playMovie()
playMovie in interface VideoCapturerpublic void setRegion(Rectangle theRegion)
setRegion in interface VideoCapturertheRegion - a rectangle that encloses the region to capturepublic void startCapture()
startCapture in interface VideoCapturerpublic void startCapture(int numSeconds)
startCapture in interface VideoCapturernumSeconds - the number of seconds to capturepublic void stopCapture()
stopCapture in interface VideoCapturerpublic static void main(String[] args)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||