<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
@noelWelsh : I tested your advice, but it not run.. I tested to rotate and translate then : The bitmap is turn around another point..<div>I test to translate and rotate then, the result is the same. Thanks you anyway.</div><div><br></div><div>@Jay : I don't know how you can rotate bitmap with gl2d library.. I must draw with another thing ? <br><br>> Date: Mon, 9 May 2011 08:21:49 -0600<br>> Subject: Re: [racket] Racket/gui : How to rotate a bitmap% ?<br>> From: jay.mccarthy@gmail.com<br>> To: noelwelsh@gmail.com<br>> CC: julien-0659@hotmail.fr; users@racket-lang.org<br>> <br>> And that's the exact same thing you do in OpenGL too. My gl2d code<br>> just packages those GL commands in a nice way. I have a new experiment<br>> with doing the same thing but with a functional packaging:<br>> <br>> https://github.com/get-bonus/get-bonus/blob/master/exp/gl.rkt<br>> <br>> Look at the contracts at the bottom. (This package, btw, can very<br>> easily get very high frame rates with very naive rendering, because it<br>> automatically compiles common draw sequences to the card.)<br>> <br>> Jay<br>> <br>> 2011/5/9 Noel Welsh <noelwelsh@gmail.com>:<br>> > 2011/5/9 Jyu 。 <julien-0659@hotmail.fr>:<br>> >> I can rotate a bitmap% around the (0,0) coordinate point, but I cannot do<br>> >> the same for any other point..<br>> ><br>> > You probably need to call translate and then rotate. There is a<br>> > transformation matrix maintained by the dc% which allows for rotation,<br>> > translation, and scaling. If you first translate and then rotate you<br>> > should be able to rotate your bitmap around an arbitrary point. (I say<br>> > "should" because I haven't tested it myself.)<br>> ><br>> > HTH,<br>> > N.<br>> ><br>> > _________________________________________________<br>> > For list-related administrative tasks:<br>> > http://lists.racket-lang.org/listinfo/users<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></div>                                            </body>
</html>