net.coobird.thumbnailator.util
Class BufferedImages

java.lang.Object
  extended by net.coobird.thumbnailator.util.BufferedImages

public final class BufferedImages
extends Object

This class provides convenience methods for using BufferedImages.

Author:
coobird

Method Summary
static BufferedImage copy(BufferedImage img)
          Returns a BufferedImage which is a graphical copy of the specified image.
static BufferedImage copy(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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copy

public static BufferedImage copy(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 BufferedImage copy(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.


Copyright © 2014. All rights reserved.