com.jme.util
Class ImageUtils

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

public class ImageUtils
extends java.lang.Object


Constructor Summary
ImageUtils()
           
 
Method Summary
static Image convert(Image source, Image.Format convertTo)
          This method converts between different Image formats.
static java.awt.Image makeAwtImage(Image image)
           
 
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

convert

public static Image convert(Image source,
                            Image.Format convertTo)
                     throws JmeException
This method converts between different Image formats. Right now it only converts RGB888 to RBGA8888, but in the future it might handle more formats, such as RGBA8888 to RGBA8888_DXT5.

Parameters:
source - The source Image to convert from.
convertTo - The type of Image to convert to. Eg. Image.RGBA8888
Returns:
The newly created converted Image.
Throws:
JmeException - thrown is the conversion can not be done.

makeAwtImage

public static java.awt.Image makeAwtImage(Image image)