Frees all resources allocated by this object.
public void dispose()
The resources freed by this object are limited to those allocated by it. If you construct a Pen object based on a previously-allocated Win32 handle, the call to the dispose method does not free this object.