Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!news.funet.fi!funic!santra!hila.hut.fi!jmunkki From: jmunkki@hila.hut.fi (Juri Munkki) Newsgroups: comp.sys.mac.programmer Subject: Re: Draw Rotated String Message-ID: <1991May8.201345.27891@santra.uucp> Date: 8 May 91 20:13:45 GMT References: <1991May8.015923.18676@uniwa.uwa.oz> Sender: news@santra.uucp (Cnews - USENET news system) Reply-To: jmunkki@hila.hut.fi (Juri Munkki) Organization: Helsinki University of Technology, FINLAND Lines: 23 In article <1991May8.015923.18676@uniwa.uwa.oz> andreww@uniwa.uwa.oz (Andrew John Williams) writes: >I saw a very nice bitmap rotate a while back - used nothing but >CopyBits. Now if I could only remember where it was. It was in some >book, of a set of (I think) 2 from some Mac mag. WHAT WAS IT CALLED?? >Definitely worth having, whatever it was... Best of MacTutor, probably. I remember a MacTutor article that used copybits recursively to rotate a square bitmap 90 degrees at a time. The discussion that followed the article indicated that the algorithm is only cute, but not fast by any means. To rotate a bitmap to any angle, check out my sample source code from UMPG (Usenet Macintosh Programmer's Guide). Even though that code uses only toolbox calls to access the bitmap (a major bottleneck in this case), it does fairly well and is simple to use in real programs. BTW: I usually like getting mail, so if you like the rotation algorithm or would like to discuss it with me, don't hesitate to mail me. ____________________________________________________________________________ / Juri Munkki / Helsinki University of Technology / Wind / Project / / jmunkki@hut.fi / Computing Center Macintosh Support / Surf / STORM / ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~