Bitmap.destroyHandle

Overview | Methods | This Package | All Packages

Bitmap.destroyHandle

Called when this object is going to destroy its Win32 handle.

Syntax

protected void destroyHandle( int handle )

Parameters

handle

The Win32 handle to the bitmap on which this object is based.

Remarks

The Bitmap class' implementation of destroyHandle frees only handles owned by the Bitmap object. If you have created this object based on a previously allocated bitmap handle, this method does nothing; you must free this handle. Similarly, if you have used the object to retrieve a handle to this bitmap (using the copyHandle method), this handle is not freed by the object's call to destroyHandle; you must free it.

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