Provides a hint that an image will no longer be accessed from a reference in user space. The results are equivalent to those that occur when the program loses its last reference to this image, the garbage collector discovers this, and finalize is called. This can be used as a hint in situations where waiting for garbage collection would be overly conservative.
PlanarImage
defines this method to remove the image being disposed from the list of sinks in all of its source images. Subclasses should call super.dispose()
in their dispose
methods, if any.
The results of referencing an image after a call to dispose()
are undefined.