home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!think.com!spool.mu.edu!news.cs.indiana.edu!sgiblab!sono!brianc
- From: brianc@acuson.com (Brian Cox)
- Subject: Re: PolyRgn?
- Message-ID: <1992Nov18.204001.24972@acuson.com>
- Organization: Acuson; Mountain View, California
- References: <1992Nov13.134029.28517@lth.se>
- Date: Wed, 18 Nov 1992 20:40:01 GMT
- Lines: 34
-
- d91ms@efd.lth.se (Magnus Strand) writes:
-
- >According to IM I (page 191) you can convert a polygon into a region,
- >but I can't find any documentation on how to do it. Does anyone know
- >if this is possible?
-
- >Thanks in advance.
-
-
- >Magnus Strand
- >E-mail: d91ms@efd.lth.se
-
-
-
- I think something along the lines of the following would work:
-
- polyRgn = NewRgn();
-
- OpenRgn();
- FramePoly(&myPolygon);
- CloseRgn(polyRgn);
-
- I wanted to do something similar in converting a rounded rectangle into
- a region. This was the path I took...
-
-
- --Brian Cox--
-
-
- --
-
- --Brian Cox--
- ------------------
-
-