Package jme3tools.converters
Class ImageToAwt
java.lang.Object
jme3tools.converters.ImageToAwt
-
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedImageconvert(com.jme3.texture.Image image, boolean do16bit, boolean fullAlpha, int mipLevel) static voidconvert(com.jme3.texture.Image input, com.jme3.texture.Image output) Convert the image from the given format to the output format.static voidconvert(BufferedImage image, com.jme3.texture.Image.Format format, ByteBuffer buf) Convert an AWT image to jME image.static voidcreateData(com.jme3.texture.Image image, boolean mipmaps)
-
Method Details
-
convert
public static void convert(BufferedImage image, com.jme3.texture.Image.Format format, ByteBuffer buf) Convert an AWT image to jME image. XXX not implemented yet!- Parameters:
image- the input image (not null, unaffected)format- the data formatbuf- the output buffer (not null, modified)
-
createData
public static void createData(com.jme3.texture.Image image, boolean mipmaps) -
convert
public static void convert(com.jme3.texture.Image input, com.jme3.texture.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- the input image (not null, unaffected)output- the output image (not null, modified)
-
convert
public static BufferedImage convert(com.jme3.texture.Image image, boolean do16bit, boolean fullAlpha, int mipLevel)
-