de.lessvoid.nifty.render
Class NiftyImage

java.lang.Object
  extended by de.lessvoid.nifty.render.NiftyImage

public class NiftyImage
extends Object

NiftyImage.

Author:
void

Constructor Summary
NiftyImage(NiftyRenderEngine niftyRenderEngine, RenderImage createImage)
          create new NiftyImage.
 
Method Summary
 void dispose()
          Dispose the resources kept by this image.
 int getHeight()
          Get the height of the 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NiftyImage

public NiftyImage(NiftyRenderEngine niftyRenderEngine,
                  RenderImage createImage)
create new NiftyImage.

Parameters:
createImage - RenderImage
Method Detail

getWidth

public int getWidth()
Get the width of the image.

Returns:
width of image in pixel

getHeight

public int getHeight()
Get the height of the image.

Returns:
height of image in pixel

render

public 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.

Parameters:
x - x
y - y
width - width
height - height
color - color
scale - scale

setImageMode

public void setImageMode(ImageMode imageMode)
Set a new sub image active state.

Parameters:
imageMode - new type

reload

public void reload()
Reload the image data.


dispose

public void dispose()
Dispose the resources kept by this image.



Copyright © 2011. All Rights Reserved.