<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
The problem is now solve with the 5.1.1 version of Racket. (for floats)<br>I can rotate a bitmap% around the (0,0) coordinate point, but I cannot do the same for any other point..<br>I tried to use a bitmap-dc for rotate the bitmap, and draw this bitmap-dc on a canvas with a dc and method "draw-bitmap", but the 3/4 of the image is cut..<br>I've seen you used gl2d library for rotate your images.. Should I do the same ?<br>(when I try to run a code with gl2d code, my DrRacket closes immediatly.. what's the problem ?)<br>Thanks<br><br>Jyu.<br><br>> Date: Tue, 3 May 2011 14:40:54 -0600<br>> Subject: Re: [racket] Racket/gui : How to rotate a bitmap% ?<br>> From: jay.mccarthy@gmail.com<br>> To: julien-0659@hotmail.fr<br>> CC: users@racket-lang.org<br>> <br>> [Please reply-all.]<br>> <br>> I forget when racket/draw was introduced, I think with the graphical<br>> rewrite. I've never seen the float problem you mention.<br>> <br>> Did you using "rotate" on the dc solve your problem?<br>> <br>> Jay<br>> <br>> 2011年5月3日13:43 Jyu 。 <julien-0659@hotmail.fr>:<br>> > Thanks for response, I'm not use 2htdp/image, because I don't want to have<br>> > problem with bounding boxes..<br>> > I draw with a dc directly in with draw-bitmap yes.<br>> > Is racket/draw only available on Racket 5.1 ? Because I have problems with<br>> > floats with Racket 5.1 on ubuntu...<br>> > For example, if I write "(printf "~a" 0.8)" on the top level, this return<br>> > "0.0"<br>> > It's very problematic for Chipmunk..<br>> ><br>> >> Date: Mon, 2 May 2011 15:53:00 -0600<br>> >> Subject: Re: [racket] Racket/gui : How to rotate a bitmap% ?<br>> >> From: jay.mccarthy@gmail.com<br>> >> To: julien-0659@hotmail.fr<br>> >> CC: users@racket-lang.org<br>> >><br>> >> If you are using 2htdp/image, you can use 'rotate'<br>> >><br>> >><br>> >> http://pre.racket-lang.org/docs/html/teachpack/2htdpimage.html#(def._((lib._2htdp/image..rkt)._rotate))<br>> >><br>> >> If you are using a dc directly with draw-bitmap, you can use a<br>> >> different 'rotate'<br>> >><br>> >><br>> >> http://pre.racket-lang.org/docs/html/draw/dc___.html?q=draw-bitmap#(meth._(((lib._racket/draw..rkt)._dc~3c~25~3e)._rotate))<br>> >><br>> >> How are you drawing?<br>> >><br>> >> Jay<br>> >><br>> >> 2011年5月2日15:30 Jyu 。 <julien-0659@hotmail.fr>:<br>> >> > Hi !<br>> >> > For a school project who use the chipmunk 2D physics library, I need to<br>> >> > rotate an image (instance of bitmap%)..<br>> >> > I searched for a long time but I have not found, someone know how can I<br>> >> > do<br>> >> > this ?<br>> >> > Thanks.<br>> >> > _________________________________________________<br>> >> > For list-related administrative tasks:<br>> >> > http://lists.racket-lang.org/listinfo/users<br>> >> ><br>> >><br>> >><br>> >><br>> >> --<br>> >> Jay McCarthy <jay@cs.byu.edu><br>> >> Assistant Professor / Brigham Young University<br>> >> http://faculty.cs.byu.edu/~jay<br>> >><br>> >> "The glory of God is Intelligence" - D&C 93<br>> ><br>> <br>> <br>> <br>> -- <br>> Jay McCarthy <jay@cs.byu.edu><br>> Assistant Professor / Brigham Young University<br>> http://faculty.cs.byu.edu/~jay<br>> <br>> "The glory of God is Intelligence" - D&C 93<br>                                            </body>
</html>