Called once the device context is no longer needed, returns a wx:meta-file% object
This must be called after the device context is finished with. A metafile is returned, and ownership of it passes to the calling application (so it should be destroyed explicitly).