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