Adding dispose() as suggested by Jürg Lehni on helma-dev.

This commit is contained in:
hns 2003-12-02 15:58:37 +00:00
parent 6170e10a5a
commit 415a6cbb27

View file

@ -81,6 +81,16 @@ public abstract class ImageWrapper {
}
/**
* Dispose the Graphics context and null out the image.
*/
public void dispose() {
if (img != null) {
g.dispose();
img = null;
}
}
/**
* Set the font used to write on this image.
*/