home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!rosie!NeXT.com
- From: sam_s@NeXT.com (Sam Streeper)
- Newsgroups: comp.sys.next.programmer
- Subject: Re: Drawing in View
- Message-ID: <5919@rosie.NeXT.COM>
- Date: 21 Nov 92 00:56:27 GMT
- References: <1992Nov14.175330.17790@athena.mit.edu>
- Sender: news@NeXT.COM
- Reply-To: sam_s@NeXT.com
- Lines: 23
-
- pan@athena.mit.edu (Howard W Pan) writes:
- > If I drew a picture that was larger than the frame of the View, only the part
- > that is within the frame is displayed. But what happens to the rest of the
- > picture? Is the other part kept in memory or is it just discarded and
- > regenerated when I resize my frame? Does this have anything to do
- > with whether the Window on which my View is buffered or retained?
-
- What kind of picture are you drawing? Are you drawing with PostScript
- operators? A View is mythical entity that doesn't store any image. Instead,
- it represents transformations and clipping that will be applied when you draw
- with focus locked on the View. Those transformations are applied in order to
- generate bits that go to a window, which is a rectangular bitmap device.
-
- The simple answer to your question is that Windows take storage, NXImages cache
- bitmaps in windows (and thus take storage), and Views are used to draw into
- windows but don't take storage. (The answer is more complicated than this, but
- this is the fundamental concept)
-
- -sam
-
- --
- Opinions expressed herein are not those of my employer. They're not even
- mine. They're probably wrong besides. How did they get in here, anyway?
-