home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / tcl / 2334 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  1.3 KB

  1. Path: sparky!uunet!think.com!ames!ig!biosci!parc!welch
  2. From: welch@parc.xerox.com (Brent Welch)
  3. Newsgroups: comp.lang.tcl
  4. Subject: Re: images vs. bitmaps
  5. Message-ID: <welch.726773055@corvina>
  6. Date: 11 Jan 93 17:24:15 GMT
  7. References: <mathew.726443620@henry>
  8. Sender: news@parc.xerox.com
  9. Organization: Xerox PARC
  10. Lines: 24
  11.  
  12. mathew@elroy.Jpl.Nasa.Gov (Mathew Yeates) writes:
  13.  
  14. >I would very much like to be able to use color images the same way
  15. >bitmaps are used. I've looked a bit at tkpixmap but
  16. >1) It only looks applicable to someone writing C code, not wish scripts.
  17. >2) Who knows if its up to date or not.
  18.  
  19. >Does anyone already done this stuff? I don't want to have to wait for
  20. >future versions of Tk to do simple stuff like displaying images.
  21.  
  22. I've had good luck with the photo widget.  It is quite straight-forward
  23. to include into wish.  You do need to provide some C code that reads
  24. in your image and stuffs it into the photo widget, but you only need
  25. to do that once and then bundle it into wish along with the photo widget.
  26. The code comes with a sample reader for ppm files, and it was easy
  27. to adapt that to my own needs.  You should be able to find the photo
  28. widget in shar format in the archives on barkley.berkeley.edu
  29. ----------------------------------
  30.     Brent Welch    Xerox-PARC
  31.  
  32. --
  33.  
  34. ----------------------------------
  35.     Brent Welch    Xerox-PARC
  36.