Microsoft SDK for Java

Graphics.dispose

Frees all resources allocated by this object.

Syntax

public void dispose()

Remarks

The Graphics object has function-level scope. When the object goes out of scope, this method is called automatically.

The dispose method frees only the resources that it allocates. Thus, if you create a Graphics object based on a handle that you have allocated manually, you must manually free this handle.

See Also   destroyHandle

© 1999 Microsoft Corporation. All rights reserved. Terms of use.