Class BufferedImages


  • public final class BufferedImages
    extends java.lang.Object
    This class provides convenience methods for using BufferedImages.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private BufferedImages()
      This class is not intended to be instantiated.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.awt.image.BufferedImage copy​(java.awt.image.BufferedImage img)
      Returns a BufferedImage which is a graphical copy of the specified image.
      static java.awt.image.BufferedImage copy​(java.awt.image.BufferedImage img, int imageType)
      Returns a BufferedImage with the specified image type, where the graphical content is a copy of the specified image.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BufferedImages

        private BufferedImages()
        This class is not intended to be instantiated.
    • Method Detail

      • copy

        public static java.awt.image.BufferedImage copy​(java.awt.image.BufferedImage img)
        Returns a BufferedImage which is a graphical copy of the specified image.
        Parameters:
        img - The image to copy.
        Returns:
        A copy of the specified image.
      • copy

        public static java.awt.image.BufferedImage copy​(java.awt.image.BufferedImage img,
                                                        int imageType)
        Returns a BufferedImage with the specified image type, where the graphical content is a copy of the specified image.
        Parameters:
        img - The image to copy.
        imageType - The image type for the image to return.
        Returns:
        A copy of the specified image.