home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 20733 < prev    next >
Encoding:
Text File  |  1993-01-06  |  1.5 KB  |  34 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!mcsun!news.funet.fi!funic!nntp.hut.fi!vipunen.hut.fi!jmunkki
  3. From: jmunkki@vipunen.hut.fi (Juri Munkki)
  4. Subject: Re: QuickDraw: Why Can't it Mirror Right?
  5. Message-ID: <1993Jan5.215948.229@nntp.hut.fi>
  6. Sender: usenet@nntp.hut.fi (Usenet pseudouser id)
  7. Nntp-Posting-Host: vipunen.hut.fi
  8. Reply-To: jmunkki@vipunen.hut.fi (Juri Munkki)
  9. Organization: Helsinki University of Technology
  10. References: <1993Jan5.191918.12324@fsl.noaa.gov>
  11. Date: Tue, 5 Jan 1993 21:59:48 GMT
  12. Lines: 20
  13.  
  14. In article <1993Jan5.191918.12324@fsl.noaa.gov> urban@yoda.fsl.noaa.gov (Art Urban) writes:
  15. >I realize that mathematically my region will be defined correctly, but I
  16. >want it to be drawn with some semblance of accuracy on the screen when I
  17. >call FrameRgn(). If QuickDraw can do it correctly to the left, why can't it
  18. >do it correctly to the right? (or vise-versa :-) )
  19.  
  20. Inside Macintosh often gives the impression that regions are infinitely
  21. accurate when it says that regions are a mathematical representation of
  22. areas. In fact, a region is really just a packed bitmap. The packing
  23. method happens to be patented by Apple, but it's not fancy or anything.
  24.  
  25. So, if QD draws a line "incorrectly", then the pixels in the region will
  26. also be incorrect in the same way.
  27.  
  28. I suggest that you try using a bitmap mask that you draw with polygons.
  29. It may be faster than using regions, although this depends on the situation.
  30.  
  31. -- 
  32.   Juri Munkki                           Windsurf: fast sailing
  33.  jmunkki@hut.fi                          Macintosh: fast software
  34.