1Pixmap(3)             User Contributed Perl Documentation            Pixmap(3)
2
3
4

NAME

6       Tk::Pixmap - Create color images from XPM files.
7

SYNOPSIS

9           $widget->Pixmap?(name?,options?)?
10

DESCRIPTION

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
25           segmatation 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
30           generated by the pixmap(1) program).
31

IMAGE METHODS

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

SEE ALSO

38       Tk::Image
39

KEYWORDS

41       pixmap, image, tix
42
43
44
45perl v5.30.1                      2020-01-30                         Pixmap(3)
Impressum