home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18616 < prev    next >
Encoding:
Text File  |  1992-11-18  |  963 b   |  45 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!think.com!spool.mu.edu!news.cs.indiana.edu!sgiblab!sono!brianc
  3. From: brianc@acuson.com (Brian Cox)
  4. Subject: Re: PolyRgn?
  5. Message-ID: <1992Nov18.204001.24972@acuson.com>
  6. Organization: Acuson; Mountain View, California
  7. References: <1992Nov13.134029.28517@lth.se>
  8. Date: Wed, 18 Nov 1992 20:40:01 GMT
  9. Lines: 34
  10.  
  11. d91ms@efd.lth.se (Magnus Strand) writes:
  12.  
  13. >According to IM I (page 191) you can convert a polygon into a region,
  14. >but I can't find any documentation on how to do it. Does anyone know
  15. >if this is possible?
  16.  
  17. >Thanks in advance.
  18.  
  19.  
  20. >Magnus Strand
  21. >E-mail: d91ms@efd.lth.se
  22.  
  23.  
  24.  
  25. I think something along the lines of the following would work:
  26.  
  27.     polyRgn = NewRgn();
  28.  
  29.     OpenRgn();
  30.         FramePoly(&myPolygon);
  31.     CloseRgn(polyRgn);
  32.  
  33. I wanted to do something similar in converting a rounded rectangle into
  34. a region.  This was the path I took...
  35.  
  36.  
  37.                     --Brian Cox--
  38.  
  39.  
  40. -- 
  41.  
  42.                        --Brian Cox--
  43. ------------------
  44.  
  45.