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

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Tue May 3 16:40:54 EDT 2011

[Please reply-all.]

I forget when racket/draw was introduced, I think with the graphical
rewrite. I've never seen the float problem you mention.

Did you using "rotate" on the dc solve your problem?

Jay

2011年5月3日13:43 Jyu 。 <julien-0659 at hotmail.fr>:
> Thanks for response, I'm not use 2htdp/image, because I don't want to have
> problem with bounding boxes..
> I draw with a dc directly in with draw-bitmap yes.
> Is racket/draw only available on Racket 5.1 ? Because I have problems with
> floats with Racket 5.1 on ubuntu...
> For example, if I write "(printf "~a" 0.8)" on the top level, this return
> "0.0"
> It's very problematic for Chipmunk..
>
>> Date: Mon, 2 May 2011 15:53:00 -0600
>> Subject: Re: [racket] Racket/gui : How to rotate a bitmap% ?
>> From: jay.mccarthy at gmail.com
>> To: julien-0659 at hotmail.fr
>> CC: users at racket-lang.org
>>
>> If you are using 2htdp/image, you can use 'rotate'
>>
>>
>> http://pre.racket-lang.org/docs/html/teachpack/2htdpimage.html#(def._((lib._2htdp/image..rkt)._rotate))
>>
>> If you are using a dc directly with draw-bitmap, you can use a
>> different 'rotate'
>>
>>
>> http://pre.racket-lang.org/docs/html/draw/dc___.html?q=draw-bitmap#(meth._(((lib._racket/draw..rkt)._dc~3c~25~3e)._rotate))
>>
>> How are you drawing?
>>
>> Jay
>>
>> 2011年5月2日15:30 Jyu 。 <julien-0659 at hotmail.fr>:
>> > Hi !
>> > For a school project who use the chipmunk 2D physics library, I need to
>> > rotate an image (instance of bitmap%)..
>> > I searched for a long time but I have not found, someone know how can I
>> > do
>> > this ?
>> > Thanks.
>> > _________________________________________________
>> >  For list-related administrative tasks:
>> >  http://lists.racket-lang.org/listinfo/users
>> >
>>
>>
>>
>> --
>> Jay McCarthy <jay at cs.byu.edu>
>> Assistant Professor / Brigham Young University
>> http://faculty.cs.byu.edu/~jay
>>
>> "The glory of God is Intelligence" - D&C 93
>



-- 
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://faculty.cs.byu.edu/~jay

"The glory of God is Intelligence" - D&C 93



Posted on the users mailing list.