1Pixmap(3) User Contributed Perl Documentation Pixmap(3)
2
3
4
6 Tk::Pixmap - Create color images from XPM files.
7
9 $widget->Pixmap?(name?,options?)?
10
12 XPM is a popular X Window image file format for storing color icons.
13 The Pixmap image type can be used to create color images using XPM
14 files.
15
16 Pixmaps support the following options:
17
18 -data => string
19 Specifies the contents of the source pixmap as a string. The
20 string must adhere to the XPM file format (e.g., as generated by
21 the pixmap(1) program). If both the -data and -file options are
22 specified, the -data option takes precedence. Please note that the
23 XPM file parsing code in the xpm library is somewhat fragile. The
24 first line of the string must be "/* XPM */" or otherwise a seg‐
25 matation fault will be caused.
26
27 -file => name
28 name gives the name of a file whose contents define the source
29 pixmap. The file must adhere to the XPM file format (e.g., as gen‐
30 erated by the pixmap(1) program).
31
33 When a pixmap image is created, Tk also creates a new object. This
34 object supports the configure and cget methods described in Tk::options
35 which can be used to enquire and modify the options described above.
36
38 Tk::Image
39
41 pixmap, image, tix
42
43
44
45perl v5.8.8 2008-02-05 Pixmap(3)