com.threecoffee.media
Class ImageControl

java.lang.Object
  extended by com.threecoffee.media.ImageControl

public class ImageControl
extends java.lang.Object

Provides static methods for Image manipulation.

Author:
Divyansh Prakash

Constructor Summary
ImageControl()
           
 
Method Summary
static javax.swing.ImageIcon resize(javax.swing.ImageIcon orig, int width, int height)
          Resizes the given ImageIcon to the given width and height.
static java.awt.Image resize(java.awt.Image orig, int width, int height)
          Resizes the given Image to the given width and height.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageControl

public ImageControl()
Method Detail

resize

public static java.awt.Image resize(java.awt.Image orig,
                                    int width,
                                    int height)
Resizes the given Image to the given width and height.


resize

public static javax.swing.ImageIcon resize(javax.swing.ImageIcon orig,
                                           int width,
                                           int height)
Resizes the given ImageIcon to the given width and height.