Package com.avpkit.mediatool.demos
Class CaptureScreenToFile
- java.lang.Object
-
- com.avpkit.mediatool.demos.CaptureScreenToFile
-
public class CaptureScreenToFile extends java.lang.Object
UsingIMediaWriter, takes snapshots of your desktop and encodes them to video.- Author:
- aclarke
-
-
Constructor Summary
Constructors Constructor Description CaptureScreenToFile()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.awt.image.BufferedImageconvertToType(java.awt.image.BufferedImage sourceImage, int targetType)Convert aBufferedImageof any type, toBufferedImageof a specified type.static voidmain(java.lang.String[] args)Takes a screen shot of your entire screen and writes it to output.flv
-
-
-
Constructor Detail
-
CaptureScreenToFile
public CaptureScreenToFile()
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
Takes a screen shot of your entire screen and writes it to output.flv- Parameters:
args-
-
convertToType
public static java.awt.image.BufferedImage convertToType(java.awt.image.BufferedImage sourceImage, int targetType)
Convert aBufferedImageof any type, toBufferedImageof 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 convertedtargetType- the desired BufferedImage type- Returns:
- a BufferedImage of the specifed target type.
- See Also:
BufferedImage
-
-