Frees all the resources allocated by this object.
public void dispose()
The dispose method frees only those resources allocated by the object. Such resources do not include handle copies that you retrieve using the object's methods; you must free these manually.
Once the dispose method is called, the Metafile object is no longer useful.