Similar to post-script-dc%
, but generates a SVG (scalable
vector graphics) file instead of a PostScript file.
Be sure to use the following methods to start/end drawing:
Attempts to use a drawing method outside of an active page raises an exception.
constructor
(new svg-dc% [width width] [height height] [output output] [ [exists exists]]) → (is-a?/c svg-dc%) width : (and/c real? (not/c negative?)) height : (and/c real? (not/c negative?)) output : (or/c path-string? output-port?)
exists :
(or/c 'error 'append 'update 'can-update 'replace 'truncate 'must-truncate 'truncate/replace) = 'error
The width and height arguments determine the width
and height of the generated image.
The image is written to output. If output is a path
and the file exists already, then exists determines how
the existing file is handled in the same way as for the #:exists
argument to open-output-file.