The problem is now solve with the 5.1.1 version of Racket. (for floats)
I can rotate a bitmap% around the (0,0) coordinate point, but I cannot do the 
same for any other point..
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..
I've seen you used gl2d library for rotate your images.. Should I do the same ?
(when I try to run a code with gl2d code, my DrRacket closes immediatly.. 
what's the problem ?)
Thanks

Jyu.

> Date: Tue, 3 May 2011 14:40:54 -0600
> Subject: Re: [racket] Racket/gui : How to rotate a bitmap% ?
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> 
> [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 。 <[email protected]>:
> > 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: [email protected]
> >> To: [email protected]
> >> CC: [email protected]
> >>
> >> 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 。 <[email protected]>:
> >> > 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 <[email protected]>
> >> Assistant Professor / Brigham Young University
> >> http://faculty.cs.byu.edu/~jay
> >>
> >> "The glory of God is Intelligence" - D&C 93
> >
> 
> 
> 
> -- 
> Jay McCarthy <[email protected]>
> Assistant Professor / Brigham Young University
> http://faculty.cs.byu.edu/~jay
> 
> "The glory of God is Intelligence" - D&C 93
                                          
_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/users

Reply via email to