public final class EncodedImage extends java.lang.Object implements IEncodedResource
| Constructor and Description |
|---|
EncodedImage(IEncodedResource encodedImage,
nl.weeaboo.vn.impl.image.desc.ImageDefinition def) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
nl.weeaboo.vn.impl.image.desc.ImageDefinition |
getDef()
Returns the
IImageDefinition accompanying the image. |
boolean |
hasAlpha()
Returns
true if the encoded image has an alpha channel. |
byte[] |
readBytes()
Reads and returns the encoded bytes representing the resource.
|
void |
setDef(nl.weeaboo.vn.impl.image.desc.ImageDefinition def) |
void |
setHasAlpha(boolean alpha) |
public EncodedImage(IEncodedResource encodedImage, nl.weeaboo.vn.impl.image.desc.ImageDefinition def)
public void dispose()
dispose in interface com.badlogic.gdx.utils.Disposablepublic byte[] readBytes()
throws java.io.IOException
IEncodedResourcereadBytes in interface IEncodedResourcejava.io.IOException - If an I/O error occurs while trying to read the encoded data.public nl.weeaboo.vn.impl.image.desc.ImageDefinition getDef()
IImageDefinition accompanying the image.public void setDef(nl.weeaboo.vn.impl.image.desc.ImageDefinition def)
getDef()public boolean hasAlpha()
true if the encoded image has an alpha channel.public void setHasAlpha(boolean alpha)
hasAlpha