NOT POSSIBLE
TkPath surface is not suitable to get a screen-shot from a certain section. Only packages such as »img«, »pixane« provide the necessary functions. - Img seems to have trouble with base64 encoding? And I don't want to make it mandatory. - pixane is closed source.
Issue remains open. This procedure remains a place holder, until it can be sorted out.
In order to get a functional SVG output, instantiate is called. Instantiate is being called »before« screenshot.
Some window classes are registered for using screen-shots:
Example 4.49. Register for Screen-shots
vgcode::register-screenshot \ TButton TRadiobutton TCheckbutton TMenubutton \ Spinbox TNotebook Radiobutton Checkbutton Menubutton \ Scale Scrollbar
... the registration code is shown above.
There is a Img related version included. That is, screen-shots are taken using Img. However the results are very bad under AQUA, some issue within Img 1.3, I think.
Under AQUA, Button is registered to use the screen-shot facility, too.