[C#]
XImage ToImage();
[Visual Basic]
Function ToImage() As XImage
The canvas is rendered and the resulting XImage object is returned.
None.