|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Image
A generic image interface. Provides the ability to render, resize, and destroy an image as appropriate.
Method Summary | |
---|---|
boolean |
destroy()
Attempts to reclaim image memory components. |
int |
getHeight()
Accessor method for the height of this image. |
int |
getWidth()
Accessor method for the width of this image. |
boolean |
isDestroyed()
Used to determine if this image has been destroyed. |
void |
render(float x_,
float y_)
Draws this image to the screen. |
void |
renderAt(float x_,
float y_)
Draws this image to the screen such that it is centered at the given location. |
boolean |
resize(int width_,
int height_)
Attempts to resize this image. |
Method Detail |
---|
void render(float x_, float y_)
x_
- the x-coordinate to render aty_
- the y-coordinate to render atvoid renderAt(float x_, float y_)
x_
- the x-coordinate to render aty_
- the y-coordinate to render atboolean destroy()
boolean isDestroyed()
boolean resize(int width_, int height_)
width_
- the new image widthheight_
- the new image height
int getWidth()
int getHeight()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |