Class CaptureScreenToFile

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.awt.image.BufferedImage convertToType​(java.awt.image.BufferedImage sourceImage, int targetType)
      Convert a BufferedImage of any type, to BufferedImage of a specified type.
      static void main​(java.lang.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
    • 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 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