use the pre-multiplied alphas when comparing images for 2htdp/image

This commit is contained in:
Robby Findler 2011-08-22 07:51:27 -05:00
parent 35f3a29020
commit 8ccf50b84b

View File

@ -281,7 +281,7 @@ has been moved out).
(send bdc set-bitmap bm)
(send bdc erase)
(render-image obj bdc 0 0)
(send bdc get-argb-pixels 0 0 (send bm get-width) (send bm get-height) bytes))
(send bdc get-argb-pixels 0 0 (send bm get-width) (send bm get-height) bytes #f #t))
;; this could render the image into a bitmap and then get the hash code of the bytes
;; cannot render the tree into a string and then get the hash code of that string