HeadlessBackend.saveSVG

Convert the canvas to SVG. Intended for debugging only.

toSVG provides the document as a string (including the XML prolog), toSVGElement provides a Fluid element (without the prolog) and saveSVG saves it to a file.

Note that rendering textures and text is only done if arsd.image is available. Otherwise, they will display as rectangles filled with whatever tint color was set. Text, if rendered, is rasterized, because it occurs earlier in the pipeline, and is not available to the backend.

class HeadlessBackend
version(Have_elemi)
const
void
saveSVG
(
string filename
)

Meta