use now renamed render-convertible-as

This commit is contained in:
Robby Findler 2013-11-10 15:40:57 -06:00
parent 7adece9001
commit 38b0906e48
2 changed files with 4 additions and 3 deletions

View File

@ -48,8 +48,9 @@
(only-in racket/draw bitmap%)
racket/class))
@title[#:style (style "svg" (list (render-pict-as 'svg-images)))
#:tag "image-guide"]{Image Guide}
@title[#:style
(style #f (list (render-convertible-as '(svg-bytes png-bytes))))
#:tag "image-guide"]{Image Guide}
This section introduces the @racketmodname[2htdp/image] library
through a series of increasingly complex image constructions

View File

@ -10,7 +10,7 @@
(define (teachpack #:svg? [svg? #f] tp . name)
(apply title #:tag tp
#:style (if svg?
(style "svg" (list (render-pict-as 'svg-images)))
(style #f (list (render-convertible-as '(svg-bytes png-bytes))))
#f)
`(,@name ": " ,(filepath (format "~a.rkt" tp))
,(index (format "~a teachpack" tp)))))