public interface ITexture2D extends ITextureUnit
| Modifier and Type | Method and Description |
|---|---|
void |
load(TextureData bitmap)
Load texture content from specified Bitmap
|
void |
save(java.awt.image.BufferedImage bitmap)
Save the texture content to external file.
|
void |
save(java.lang.String path,
java.lang.String format)
Save the texture content to external file.
|
java.awt.image.BufferedImage |
toBitmap()
Convert the texture unit to
BufferedImage instance |
getDepth, getHeight, getMagnification, getMinification, getMipmap, getScale, getScroll, getType, getUWrap, getVWrap, getWidth, getWWrap, setMagnification, setMinification, setMipmap, setScale, setScroll, setUWrap, setVWrap, setWWrapvoid load(TextureData bitmap)
bitmap - void save(java.lang.String path,
java.lang.String format)
throws java.io.IOException
path - File name to save.format - Image formatjava.io.IOExceptionvoid save(java.awt.image.BufferedImage bitmap)
bitmap - Result bitmap to save.java.awt.image.BufferedImage toBitmap()
BufferedImage instance