added drawImage for other ImageWrapper objects
This commit is contained in:
parent
c491999cf5
commit
6398e21b3b
1 changed files with 12 additions and 0 deletions
|
@ -232,6 +232,18 @@ public class ImageWrapper {
|
||||||
getGraphics().drawImage(img, x, y, null);
|
getGraphics().drawImage(img, x, y, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Draws another image to this image.
|
||||||
|
*
|
||||||
|
* @param filename ...
|
||||||
|
* @param x ...
|
||||||
|
* @param y ...
|
||||||
|
*/
|
||||||
|
public void drawImage(ImageWrapper image, int x, int y)
|
||||||
|
throws IOException {
|
||||||
|
getGraphics().drawImage(image.getImage(), x, y, null);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Draws a filled rectangle to this image.
|
* Draws a filled rectangle to this image.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue