2017-04-18 40 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