home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!newshost.uni-koblenz.de!newshost.uni-koblenz.de!usenet
- From: droege@infko.uni-koblenz.de (Detlev Droege)
- Newsgroups: comp.graphics
- Subject: Re: fast bitmap rotation
- Date: 6 Jan 1993 10:04:00 GMT
- Organization: CC/CS Uni-Koblenz
- Lines: 20
- Distribution: world
- Message-ID: <1ieaqgINN8s3@uniko.uni-koblenz.de>
- References: <6655@pdxgate.UUCP>
- NNTP-Posting-Host: nebel.uni-koblenz.de
-
- In article <6655@pdxgate.UUCP> idr@rigel.cs.pdx.edu (Ian D Romanick) writes:
- > If you are rotating every single point on a machine that doesn't do matrix
- > math in hardware, then you should be shot! There are two easy ways to do
- > this that are at least 100 times faster!
- >
- > 1. This is the easiest, but least versitile method. You basically shear your
- > bit map twice. Once horizontally and once vertically.
-
- Shearing twice is ok only for small angles. The correct method is to
- shear three times (mentioned in Foley/vanDam/Feiner/Hughes on p. 831,
- although not in a proper context).
- This method is due to Alan Paeth and can be found e.g. in Graphic Gems Vol. 1.
-
- You should also have a look in the FAQs of this group !!
-
- --
- Detlev Droege | droege@infko.uni-koblenz.de
- Universitaet Koblenz, | (NeXTmail ok)
- Institut fuer Informatik | Voice: +49 261 9119-421
- Rheinau 3-4, D-5400 Koblenz, Germany | Fax: +49 261 9119-499
-