[racket] Racket/gui : How to rotate a bitmap% ?

From: Noel Welsh (noelwelsh at gmail.com)
Date: Mon May 9 09:33:40 EDT 2011

2011/5/9 Jyu 。 <julien-0659 at hotmail.fr>:
> I can rotate a bitmap% around the (0,0) coordinate point, but I cannot do
> the same for any other point..

You probably need to call translate and then rotate. There is a
transformation matrix maintained by the dc% which allows for rotation,
translation, and scaling. If you first translate and then rotate you
should be able to rotate your bitmap around an arbitrary point. (I say
"should" because I haven't tested it myself.)

HTH,
N.



Posted on the users mailing list.