home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / lisp / 2914 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.5 KB

  1. Path: sparky!uunet!think.com!ames!olivea!mintaka.lcs.mit.edu!gateway
  2. From: SWM@stony-brook.scrc.symbolics.com (Scott McKay)
  3. Newsgroups: comp.lang.lisp
  4. Subject: Re: CLIM 1.0 source for displaying bitmapped images in a window?
  5. Message-ID: <19921119161456.5.SWM@SUMMER.SCRC.Symbolics.COM>
  6. Date: 19 Nov 92 16:31:38 GMT
  7. References: <BxvGCp.Mq6.2@cs.cmu.edu>
  8. Sender: news@mintaka.lcs.mit.edu
  9. Organization: LCS news/mail gateway
  10. Lines: 28
  11. X-Unparseable-Date: Thu
  12.  
  13.  
  14.     Date: Tue, 17 Nov 1992 12:53 EST
  15.     From: Brad Myers <bam+@cs.cmu.edu>
  16.  
  17.     In article <22897@venera.isi.edu> jas@ISI.EDU (Jeff Sullivan) writes:
  18.     >
  19.     >It would seem like such an obvious thing, yet CLIM 1 can't do it.
  20.     >Does anyone have some code that does do it?  I've heard that you can
  21.     >hack the INK to work...
  22.     >
  23.     >jas
  24.     >--
  25.  
  26.     Of course, the Garnet toolkit directly supports both black and white 
  27.     bitmaps, and color Pixmaps.
  28.  
  29. CLIM 1.1 supports abstract pixmap-y things called patterns.  You create
  30. them using MAKE-PATTERN, and can draw them by using them as the ink
  31. argument to any of the drawing functions.
  32.  
  33. CLIM 2.0 supports pixmaps, color maps (which we call palettes), and
  34. "layered colors" (which give access to color cells and planes).
  35.  
  36. Pixmaps are different from patterns because patterns are fully
  37. device-independent, whereas pixmaps are device-dependent.  For example,
  38. you can copy bits in and out of a pixmap, but you can't do that with a
  39. pattern.  On the other hand, patterns are portable -- they can be
  40. "saved" and reused on other display devices, etc.
  41.