com.jniwrapper.util
Class ImageUtils

java.lang.Object
  extended by com.jniwrapper.util.ImageUtils

public class ImageUtils
extends java.lang.Object


Method Summary
static java.awt.image.BufferedImage createBufferedImage(java.awt.Image image)
          If the thread is interrupted during examination of java image, RuntimeException is thrown.
static java.awt.Dimension getScaledSize(java.awt.Dimension size, java.awt.Dimension maxSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createBufferedImage

public static java.awt.image.BufferedImage createBufferedImage(java.awt.Image image)
If the thread is interrupted during examination of java image, RuntimeException is thrown.

Parameters:
image -
Returns:
BufferedImage with an accessible buffer of image data

getScaledSize

public static java.awt.Dimension getScaledSize(java.awt.Dimension size,
                                               java.awt.Dimension maxSize)