racket/collects/scribblings/draw/svg-dc-class.scrbl
2011-01-10 16:41:16 -07:00

27 lines
961 B
Racket

#lang scribble/doc
@(require "common.ss")
@defclass/title[svg-dc% object% (dc<%>)]{
Similar to @racket[post-script-dc%], but generates a SVG (scalable
vector graphics) file instead of a PostScript file.
@defconstructor[([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 @racket[width] and @racket[height] arguments determine the width
and height of the generated image.
The image is written to @racket[output]. If @racket[output] is a path
and the file exists already, then @racket[exists] determines how
the existing file is handled in the same way as for the @racket[#:exists]
argument to @racket[open-output-file].}
}