2017-04-18 36 views

回答

3
#lang racket 
(require pict) 

(define (save-pict the-pict name kind) 
    (define bm (pict->bitmap the-pict)) 
    (send bm save-file name kind)) 

(save-pict (standard-fish 200 200) "fish.png" 'png) 

这 “fish.png” 保存的图像。

enter image description here