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