public class ImageImpl extends java.lang.Object implements Image
Constructor and Description |
---|
ImageImpl(java.lang.String filename) |
Modifier and Type | Method and Description |
---|---|
Image |
clone()
Get cloned version of current image.
|
int |
getHeight()
Get the image height size.
|
java.awt.Image |
getSurface()
Get the surface which represents the image (java type).
|
int |
getWidth()
Get the image width size.
|
void |
render(java.awt.Graphics2D g,
int x,
int y)
Render image on current graphic output, at specified coordinates.
|
public void render(java.awt.Graphics2D g, int x, int y)
Renderable
render
in interface Renderable
g
- graphic output.x
- abscissa.y
- ordinate.public int getWidth()
Renderable
getWidth
in interface Renderable
public int getHeight()
Renderable
getHeight
in interface Renderable
public java.awt.Image getSurface()
Image
getSurface
in interface Image