This is not necessarily the current version of this TIP.
|Title:||Image Command XPM Extension|
|Version:||$Revision: 1.3 $|
R. Timothy Edwards <tim at stravinsky dot jhuapl dot edu>|
Don Porter <dgp at users dot sf dot net>
Kevin Kenny <kennykb at acm dot org>
|Created:||Wednesday, 12 May 2004|
This TIP proposes an extension to the Tk image command to incorporate color pixmap images based on the XPM format. The format is analogous to the bitmap option (tkImgBmap.c in the Tk source).
The "XPM" format has become more-or-less a standard, and is a nice text-readable color alternative to the standard X11 bitmap format. The runtime library for XPM is available in standard Linux distributions and elsewhere. Tk has a number of color photo image formats, but these make various assumptions about rendering. There is no color alternative to the simple pixel-based bitmap format.
This TIP specifies the extension of the image command in the following manner:
image create xpm name -file xpm_file
It would probably be a nice idea to include in-line pixmap specifications similar to that allowed for bitmaps by the BLT package. However, at this time, the reference implementation does not include such an extension.
There is an implementation in the source for XCircuit. The source file is "tkPixmap.c".
I'd like to see more justification in this proposal as to why a new image type is needed, rather than implementing a suitable fo