Mod /
Images
Search:  


Table Of Contents (show)

  1. 1. Images

1.  Images

The images commands manages the creation and clean up of images by window/toplevel. The images are associated with a window, whose destruction also chains the image deletion. Also provides optionally a per window naming service. The window id is used as a prefix for the tk named images.

File paths get searched for the named image, suffixes appended and, subsequently created images added to a list.

Standard Tcl supports only gif, pgm, ppm, pnm, etc. With the Img extension, support is added for jpg, png and others. For Unix [convert] can translate to supported types using the extern 'convert' program.

© 2008 Peter MacDonald

Page last modified on January 02, 2010, at 12:27 PM