home *** CD-ROM | disk | FTP | other *** search
- From: bayes@hplvec.LVLD.HP.COM (Scott Bayes)
- Date: Wed, 16 Dec 1992 22:28:06 GMT
- Subject: Re: 3D Graphics
- Message-ID: <830023@hplvec.LVLD.HP.COM>
- Organization: Hewlett-Packard Co., Loveland, CO
- Path: sparky!uunet!spool.mu.edu!sdd.hp.com!hpscit.sc.hp.com!hplextra!hpfcso!hplvec!bayes
- Newsgroups: comp.sys.mac.programmer
- References: <723298789.AA00239@insane.apana.org.au>
- Lines: 22
-
- > Well, QD lines have to do a few other things like be convertable to a
- > region, and handle fat pens. Perhaps it has something to do with this?
- > I once did a line drawer similar to QD's, in that it had to handle both
- > additional operations. I started with Bresenham's, but I had to do some
- > post-processing to convert the raw output into something that would work
- > for this.
-
- But Bresenham can easily be viewed as a way to select a path through a
- square coordinate array (actually as one person mentioned, it is even
- strongly related to a crude way to rescale a bitmap, the one seemingly
- used by CopyBits.). Given that, it's not too difficult to convert to
- creating fat lines or defining regions. You merely replace the PutPixel
- call with something else.
-
- I once used B as a way to generate a path and select neighbor pixels for
- an antialiasing routine. Our H/W guys used it as a way to rescale a
- video image in real-time (usually quite acceptable on natural scenes,
- unlike the result with lines or characters in a bitmap), by applying it
- to select scan lines and vertical pixel columns. Filtering would be
- better though.
-
- ScottB
-