From 8ccf50b84bf3b25b2c4ddbe4dbd6ef088c6a9cd7 Mon Sep 17 00:00:00 2001 From: Robby Findler Date: Mon, 22 Aug 2011 07:51:27 -0500 Subject: [PATCH] use the pre-multiplied alphas when comparing images for 2htdp/image --- collects/mrlib/image-core.rkt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collects/mrlib/image-core.rkt b/collects/mrlib/image-core.rkt index a22a338805..8299c1c0e3 100644 --- a/collects/mrlib/image-core.rkt +++ b/collects/mrlib/image-core.rkt @@ -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