public interface ImageScreen
GridScreen
.Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the entire screen.
|
int |
getHeight()
Returns the screen height.
|
int |
getWidth()
Returns the screen width.
|
void |
place(java.awt.image.BufferedImage image,
int x,
int y,
int width,
int height)
Draws an image on the screen.
|
void |
showChanges()
Shows all the changes made to the screen.
|
void place(java.awt.image.BufferedImage image, int x, int y, int width, int height)
image
- The image to be drawn.x
- The x coordinate of the top left corner of
the image, in pixels starting at 0.y
- The y coordinate of the top left corner of
the image, in pixels starting at 0.width
- The width with which the image should be drawn.height
- The height with which the image should be drawn.void clear()
void showChanges()
int getWidth()
int getHeight()