add a coercion so that equality is simpler for things produced by 'bitmap'

This commit is contained in:
Robby Findler 2010-12-22 14:22:39 -06:00
parent 7716851cde
commit 4f19b0d454

View File

@ -1264,7 +1264,8 @@
arg
(or (current-load-relative-directory)
(current-directory)))])])
#`(make-object image-snip% (make-object bitmap% #,path 'unknown/mask)))]))
;; the rotate does a coercion to a 2htdp/image image
#`(rotate 0 (make-object image-snip% (make-object bitmap% #,path 'unknown/mask))))]))
(define/chk (image->color-list image)
(let* ([w (image-width image)]