public class NiftyImage extends Object
Constructor and Description |
---|
NiftyImage(NiftyRenderEngine niftyRenderEngine,
RenderImage createImage)
create new NiftyImage.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Dispose the resources kept by this image.
|
int |
getHeight()
Get the height of the image.
|
ImageMode |
getImageMode()
Get the current ImageMode of this image.
|
int |
getWidth()
Get the width of the image.
|
void |
reload()
Reload the image data.
|
void |
render(int x,
int y,
int width,
int height,
Color color,
float scale)
Render the image using the given Box to specify the render attributes.
|
void |
setImageMode(ImageMode imageMode)
Set a new sub image active state.
|
public NiftyImage(NiftyRenderEngine niftyRenderEngine, RenderImage createImage)
createImage
- RenderImagepublic int getWidth()
public int getHeight()
public void render(int x, int y, int width, int height, Color color, float scale)
x
- xy
- ywidth
- widthheight
- heightcolor
- colorscale
- scalepublic void setImageMode(ImageMode imageMode)
imageMode
- new typepublic ImageMode getImageMode()
public void reload()
public void dispose()
Copyright © 2013. All Rights Reserved.