fix the png conversion code for 2htdp/image images
closes PR 12061 please merge to the release branch original commit: 56b82ba83c5d29afaafbed602c8e14873a14f953
This commit is contained in:
parent
21ea7fb026
commit
ad8348a51d
|
@ -231,8 +231,8 @@ has been moved out).
|
|||
(define (to-bitmap img)
|
||||
(let* ([bb (send img get-bb)]
|
||||
[bm (make-bitmap
|
||||
(add1 (inexact->exact (ceiling (bb-right bb))))
|
||||
(add1 (inexact->exact (ceiling (bb-bottom bb)))))]
|
||||
(inexact->exact (ceiling (bb-right bb)))
|
||||
(inexact->exact (ceiling (bb-bottom bb))))]
|
||||
[bdc (new bitmap-dc% [bitmap bm])])
|
||||
(send bdc erase)
|
||||
(render-image img bdc 0 0)
|
||||
|
|
Loading…
Reference in New Issue
Block a user