Graphics.destroyHandle

Overview | Methods | This Package | All Packages

Graphics.destroyHandle

Called when the Graphics object needs to destroy the underlying device context handle (HDC).

Syntax

protected void destroyHandle()

Remarks

The Graphics class's implementation of destroyHandle frees only handles owned by the Graphics object. If you created the Graphics object based on a previously allocated handle, this handle is not freed by the object's call to destroyHandle; you are responsible for freeing these handles.

However, you can override this method in your Graphics-derived class to define your own custom semantics for handle creation and destruction.