Ends a path still being built, restores every saved state and stores what was drawn; nothing is stored when nothing was drawn.
public void Dispose()
ISO 32000-2 §7.8.2 and §8.4.2. See the class remarks for where the content goes. Disposing twice does nothing.