dks.src.utils.pictures
Class CPicture

java.lang.Object
  extended by dks.src.utils.pictures.CPicture

public class CPicture
extends java.lang.Object


Constructor Summary
CPicture()
           
 
Method Summary
static java.awt.image.BufferedImage resizeAndClearImage(java.awt.image.BufferedImage image, int width, int height)
          Resize an existing BufferedImage to the specified size.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CPicture

public CPicture()
Method Detail

resizeAndClearImage

public static java.awt.image.BufferedImage resizeAndClearImage(java.awt.image.BufferedImage image,
                                                               int width,
                                                               int height)
Resize an existing BufferedImage to the specified size. If the image have already the great size, clear the graphics

Parameters:
image - the BufferedImage to resize or clear
width - the width of the result image
height - the height of the result image
Returns:
the new BufferedImage instance with the specified size