fix 2htdp/image bitmap rotation direction
This commit is contained in:
parent
a951bdcf47
commit
081fc3bad5
|
@ -616,8 +616,8 @@
|
||||||
(make-bitmap (bitmap-raw-bitmap bitmap)
|
(make-bitmap (bitmap-raw-bitmap bitmap)
|
||||||
(bitmap-raw-mask bitmap)
|
(bitmap-raw-mask bitmap)
|
||||||
(bring-between (if flipped?
|
(bring-between (if flipped?
|
||||||
(- (bitmap-angle bitmap) θ)
|
(+ (bitmap-angle bitmap) θ)
|
||||||
(+ (bitmap-angle bitmap) θ))
|
(- (bitmap-angle bitmap) θ))
|
||||||
360)
|
360)
|
||||||
(bitmap-x-scale bitmap)
|
(bitmap-x-scale bitmap)
|
||||||
(bitmap-y-scale bitmap)
|
(bitmap-y-scale bitmap)
|
||||||
|
|
|
@ -1262,7 +1262,7 @@
|
||||||
=>
|
=>
|
||||||
(image-snip->image (make-object image-snip% blue-20x10-bitmap)))
|
(image-snip->image (make-object image-snip% blue-20x10-bitmap)))
|
||||||
|
|
||||||
(test (rotate -90 (make-object image-snip% green-blue-20x10-bitmap))
|
(test (rotate 90 (make-object image-snip% green-blue-20x10-bitmap))
|
||||||
=>
|
=>
|
||||||
(image-snip->image (make-object image-snip% green-blue-10x20-bitmap)))
|
(image-snip->image (make-object image-snip% green-blue-10x20-bitmap)))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user