org.zilonis.tool.ext.mailman.ui.image
Class GraphicsUtil

java.lang.Object
  extended by org.zilonis.tool.ext.mailman.ui.image.GraphicsUtil

public class GraphicsUtil
extends java.lang.Object


Method Summary
static java.awt.image.BufferedImage createCompatibleImage(int width, int height)
           
static java.awt.image.BufferedImage createThumbnail(java.awt.image.BufferedImage image, int requestedThumbSize)
           
static java.awt.image.BufferedImage createThumbnailFast(java.awt.image.BufferedImage image, int requestedThumbSize)
           
static java.awt.image.BufferedImage createTranslucentCompatibleImage(int width, int height)
           
static java.awt.image.BufferedImage loadCompatibleImage(java.net.URL resource)
           
static java.awt.image.BufferedImage toCompatibleImage(java.awt.image.BufferedImage image)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createCompatibleImage

public static java.awt.image.BufferedImage createCompatibleImage(int width,
                                                                 int height)

createTranslucentCompatibleImage

public static java.awt.image.BufferedImage createTranslucentCompatibleImage(int width,
                                                                            int height)

loadCompatibleImage

public static java.awt.image.BufferedImage loadCompatibleImage(java.net.URL resource)
                                                        throws java.io.IOException
Throws:
java.io.IOException

toCompatibleImage

public static java.awt.image.BufferedImage toCompatibleImage(java.awt.image.BufferedImage image)

createThumbnailFast

public static java.awt.image.BufferedImage createThumbnailFast(java.awt.image.BufferedImage image,
                                                               int requestedThumbSize)

createThumbnail

public static java.awt.image.BufferedImage createThumbnail(java.awt.image.BufferedImage image,
                                                           int requestedThumbSize)