de.ukn.hci.squidy.designer.util
Class ImageUtils

java.lang.Object
  extended by de.ukn.hci.squidy.designer.util.ImageUtils

public class ImageUtils
extends Object

ImageUtils.

 Date: Feb 21, 2009
 Time: 12:10:09 AM
 

Since:
1.0.0
Version:
$Id: ImageUtils.java 30 2009-09-18 22:23:35Z nitsche $
Author:
 Roman R&aumldle
 <a href="mailto:Roman.Raedle@uni-konstanz.de">Roman.Raedle@uni-konstanz.de</a>
 Human-Computer Interaction Group
 University of Konstanz
 

Constructor Summary
ImageUtils()
           
 
Method Summary
static BufferedImage convertToGrayscaleImage(BufferedImage source)
          Converts a given image to a grayscale image.
static URL getPluginIconSmallURL(Plugin plugin)
           
static URL getPluginIconURL(Plugin plugin)
           
static URL getProcessorIconURL(Processor processor)
           
static BufferedImage scale(BufferedImage source, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageUtils

public ImageUtils()
Method Detail

getProcessorIconURL

public static URL getProcessorIconURL(Processor processor)
                               throws SquidyException
Parameters:
processor -
Returns:
Throws:
SquidyException

getPluginIconURL

public static URL getPluginIconURL(Plugin plugin)

getPluginIconSmallURL

public static URL getPluginIconSmallURL(Plugin plugin)

scale

public static BufferedImage scale(BufferedImage source,
                                  int width,
                                  int height)
                           throws IOException
Parameters:
source -
width -
height -
Returns:
Throws:
IOException

convertToGrayscaleImage

public static BufferedImage convertToGrayscaleImage(BufferedImage source)
Converts a given image to a grayscale image.

Parameters:
source -
Returns:


Copyright © 2007-2010 Human-Computer-Interaction :: University of Konstanz. All Rights Reserved.