Package com.ardor3d.image.util.awt
Class AWTImageUtil
java.lang.Object
com.ardor3d.image.util.awt.AWTImageUtil
Utility methods for converting Ardor3D Images to AWT BufferedImages.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List
<BufferedImage> convertToAWT
(Image input) Convert the given Ardor3D Image to a List of BufferedImages.static List
<BufferedImage> convertToAWT
(Image input, Color tint) Convert the given Ardor3D Image to a List of BufferedImages.
-
Constructor Details
-
AWTImageUtil
public AWTImageUtil()
-
-
Method Details
-
convertToAWT
Convert the given Ardor3D Image to a List of BufferedImages. It is a List because Ardor3D Images may contain multiple layers (for example, in the case of cube maps or 3D textures).- Parameters:
input
- the Ardor3D Image to convert- Returns:
- the BufferedImage(s) created in the conversion
-
convertToAWT
Convert the given Ardor3D Image to a List of BufferedImages. It is a List because Ardor3D Images may contain multiple layers (for example, in the case of cube maps or 3D textures). The given AWT Color is used to modulate or "tint" the returned image. TODO: Add support for more formats.
XXX: Note that only images of data type ImageDataType.UnsignedByte and ImageDataFormat of RGB or RGBA are currently supported.- Parameters:
input
- the Ardor3D Image to converttint
- the Color to apply to the generated image- Returns:
- the BufferedImage(s) created in the conversion
-