1pixmap(n)                    Tix Built-In Commands                   pixmap(n)
2
3
4

NAME

6       pixmap - image type for the XPM file format.
7

SYNOPSIS

9       image create pixmap ?name? ?options?
10
11

DESCRIPTION

13       XPM  is  a  popular X Window image file format for storing color icons.
14       The pixmap image type defined by the Tix(n) library can be used to cre‐
15       ate color images using XPM files.
16
17

CREATING PIXMAPS

19       Like  all  images,  pixmaps are created using the image create command.
20       Pixmaps support the following options:
21
22       -data string
23              Specifies the contents of the source pixmap as  a  string.   The
24              string must adhere to the XPM file format (e.g., as generated by
25              the pixmap(1) program). If both the -data and -file options  are
26              specified,  the -data option takes precedence.  Please note that
27              the XPM file parsing code in the xpm library is extremely  frag‐
28              ile.  The first line of the string must be "/* XPM */" or other‐
29              wise a segmatation fault will be caused.
30
31       -file name
32              name gives the name of a file whose contents define  the  source
33              pixmap.   The  file must adhere to the XPM file format (e.g., as
34              generated by the pixmap(1) program).
35

IMAGE COMMAND

37       When a pixmap image is created, Tk also creates  a  new  command  whose
38       name is the same as the image.  This command may be used to invoke var‐
39       ious operations on the image.  It has the following general form:
40              imageName option ?arg arg ...?
41       Option and the args determine the exact behavior of  the  command.  The
42       following commands are possible for pixmap images:
43
44       imageName cget option
45              Returns  the  current value of the configuration option given by
46              option. Option may have any of the values accepted by the  image
47              create pixmap command.
48
49       imageName configure ?option? ?value option value ...?
50              Query  or  modify the configuration options for the image. If no
51              option is specified, returns a list describing all of the avail‐
52              able options for imageName (see Tk_ConfigureInfo for information
53              on the format of this list).  If option  is  specified  with  no
54              value,  then the command returns a list describing the one named
55              option (this list will be identical to the corresponding sublist
56              of  the  value  returned  if no option is specified).  If one or
57              more option-value pairs are specified, then the command modifies
58              the given option(s) to have the given value(s); in this case the
59              command returns an empty string.  Option may  have  any  of  the
60              values accepted by the image create pixmap command.
61
62

KEYWORDS

64       pixmap(1), image(n), Tix(n)
65
66
67
68
69
70Tix                                   4.0                            pixmap(n)
Impressum