home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18645 < prev    next >
Encoding:
Text File  |  1992-11-19  |  1.5 KB  |  33 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!nih-csl.dcrt.nih.gov!FAXCSL!FIXER
  3. From: fixer@faxcsl.dcrt.nih.gov (Chris Spiral Catfish Tate)
  4. Subject: Re: Please help with GrayRgn
  5. Message-ID: <1992Nov19.141352.11125@alw.nih.gov>
  6. Sender: postman@alw.nih.gov (AMDS Postmaster)
  7. Reply-To: fixer@faxcsl.dcrt.nih.gov
  8. Organization: Computer Systems Laboratory, DCRT, NIH
  9. References: <2B0B7428.27432@ics.uci.edu>
  10. Date: Thu, 19 Nov 1992 14:13:52 GMT
  11. Lines: 20
  12.  
  13. In article <2B0B7428.27432@ics.uci.edu>, nyang@bonnie.ics.uci.edu (Nick Yang) writes:
  14. >Hi!  I am sure this is a very easy question.  Can someone tell he how to
  15. >find out the width and height of a region?  Specificly, I am trying to
  16. >find out the width and height of the GrayRgn global variable.  Thank you
  17. >very much for your help in advance.
  18.  
  19.  
  20. Yep, it's pretty simple.  When you look in the Quickdraw chapter of Inside
  21. Macintosh, you'll see that a region's data structure is defined as holding
  22. its bounding rectangle, followed by the actual region data (whose format
  23. is somewhat complicated).
  24.  
  25. (**GrayRgn).rgnBBox will give you the dimensions of the GrayRgn, as well
  26. as its positioning in global coordinates.
  27.  
  28. ------------------------------------------------------------------------------
  29. Christopher Tate             | The Leadfoot Collection, Continued:
  30. Management System Designers  |     * Heavy Fuel (Dire Straits)
  31.                              |     * Last Scene in September (Preston Reed)
  32. fixer@faxcsl.dcrt.nih.gov    | Because driving fast is a cathartic experience.
  33.