use pen's alpha color stuff in 2htdp/image

original commit: 830c797ee44e77f8a53477240979add83edebc17
This commit is contained in:
Robby Findler 2010-12-31 10:25:01 -06:00
parent c4dd75a553
commit 92e830508d

View File

@ -1065,7 +1065,8 @@ the mask bitmap and the original bitmap are all together in a single bytes!
(make-object color%
(color-red color)
(color-green color)
(color-blue color))))
(color-blue color)
(/ (color-alpha color) 255))))
(define (pen->pen-obj/cache pen)