jme3tools.converters
Class ImageToAwt
java.lang.Object
jme3tools.converters.ImageToAwt
public class ImageToAwt
- extends java.lang.Object
Method Summary |
static void |
convert(java.awt.image.BufferedImage image,
Image.Format format,
java.nio.ByteBuffer buf)
Convert an AWT image to jME image. |
static java.awt.image.BufferedImage |
convert(Image image,
boolean do16bit,
boolean fullalpha,
int mipLevel)
|
static void |
convert(Image input,
Image output)
Convert the image from the given format to the output format. |
static void |
createData(Image image,
boolean mipmaps)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageToAwt
public ImageToAwt()
convert
public static void convert(java.awt.image.BufferedImage image,
Image.Format format,
java.nio.ByteBuffer buf)
- Convert an AWT image to jME image.
createData
public static void createData(Image image,
boolean mipmaps)
convert
public static void convert(Image input,
Image output)
- Convert the image from the given format to the output format.
It is assumed that both images have buffers with the appropriate
number of elements and that both have the same dimensions.
- Parameters:
input
- output
-
convert
public static java.awt.image.BufferedImage convert(Image image,
boolean do16bit,
boolean fullalpha,
int mipLevel)