home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pageworks.com!world!eff!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!NewsWatcher!user
- From: werner@soe.berkeley.edu (John Werner)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Toolbox for elegant, multi-bitdepth Update handling?
- Followup-To: comp.sys.mac.programmer
- Date: 13 Nov 1992 01:05:01 GMT
- Organization: UC Berkeley School of Education
- Lines: 21
- Distribution: world
- Message-ID: <werner-121192170157@128.32.157.31>
- References: <1992Nov13.003200.8020@leland.Stanford.EDU>
- NNTP-Posting-Host: 128.32.157.31
-
- In article <1992Nov13.003200.8020@leland.Stanford.EDU>,
- felciano@summit.stanford.edu (Ramon M. Felciano) wrote:
- > screen, so I'd like it to be a shade of gray (pattern). How do I handle
- > this for windows that span several screens? It seems like I'll have to
- > loop through each device, and if any part of the window overlaps there,
- > I'll need to draw _that rectangle_ in that screen at the correct bit
- > depth. Ugh!
-
- This is what you need to do, but it's really not that hard. There's a
- toolbox routine called DeviceLoop that does most of the work for you. You
- pass it a pointer to a function that it calls for each device that overlaps
- your window area. The function can easily figure out the device bit depth
- and color/bw setting.
-
- Take a look at the "MyDeviceLoop" snippet from DTS (in the
- "Graphics&Printing:QuickDraw" folder). If you're using MacApp I have a
- not-quite-finished TDeviceLoopView class you can use.
-
- --
- John Werner werner@soe.berkeley.edu
- UC Berkeley School of Education 510-642-9651
-