com.xuggle.mediatool.demos
Class CaptureScreenToFile

Package class diagram package CaptureScreenToFile
java.lang.Object
  extended by com.xuggle.mediatool.demos.CaptureScreenToFile

public class CaptureScreenToFile
extends Object

Using IMediaWriter, takes snapshots of your desktop and encodes them to video.


Constructor Summary
CaptureScreenToFile()
           
 
Method Summary
static BufferedImage convertToType(BufferedImage sourceImage, int targetType)
          Convert a BufferedImage of any type, to BufferedImage of a specified type.
static void main(String[] args)
          Takes a screen shot of your entire screen and writes it to output.flv
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CaptureScreenToFile

public CaptureScreenToFile()
Method Detail

main

public static void main(String[] args)
Takes a screen shot of your entire screen and writes it to output.flv

Parameters:
args -

convertToType

public static BufferedImage convertToType(BufferedImage sourceImage,
                                          int targetType)
Convert a BufferedImage of any type, to BufferedImage of a specified type. If the source image is the same type as the target type, then original image is returned, otherwise new image of the correct type is created and the content of the source image is copied into the new image.

Parameters:
sourceImage - the image to be converted
targetType - the desired BufferedImage type
Returns:
a BufferedImage of the specifed target type.
See Also:
BufferedImage


Copyright © 2008, 2010 Xuggle