1img-pixmap(n) Img img-pixmap(n)
2
3
4
6 img-pixmap - Img, Pixmap Image type (pixmap)
7
9 package require Tk
10
11 package require img::pixmap ?1.3?
12
13 image create pixmap ?name? ?options?
14
15 imageName option ?arg arg ...?
16
17 imageName cget option
18
19 imageName configure ?option? ?value option value ...?
20
21
23 The package img::pixmap is a sub-package of Img. It can be loaded as a
24 part of the complete Img support, via package require Img, or on its
25 own, via package require img::pixmap.
26
27 Like all packages of Img it does not provide new commands, but extends
28 the existing Tk command image.
29
30 In contrast to all other sub packages this packages does not extend
31 Tk's photo image type, but rather provides a completely new image type,
32 on the same level as photo and bitmap.
33
35 Like all images, pixmaps are created using the image create command.
36
37 image create pixmap ?name? ?options?
38 Pixmaps support the following options:
39
40 -data string
41 Specifies the contents of the source pixmap as a string.
42 The string must adhere to X11 pixmap format (e.g., as
43 generated by the pixmap program). If both the -data and
44 -file options are specified, the -data option takes
45 precedence.
46
47 -file name
48 name gives the name of a file whose contents define the
49 source pixmap. The file must adhere to X11 pixmap format
50 (e.g., as generated by the pixmap program).
51
53 When a pixmap image is created, Tk also creates a new com mand whose
54 name is the same as the image. This command may be used to invoke var‐
55 ious operations on the image. It has the following general form:
56
57 imageName option ?arg arg ...?
58
59 Option and the args determine the exact behavior of the command. The
60 following commands are possible for pixmap images:
61
62 imageName cget option
63 Returns the current value of the configuration option given by
64 option. Option may have any of the values accepted by the image
65 create pixmap command.
66
67 imageName configure ?option? ?value option value ...?
68 Query or modify the configuration options for the image. If no
69 option is specified, returns a list describing all of the avail‐
70 able options for imageName (see Tk_ConfigureInfo for information
71 on the format of this list). If option is specified with no
72 value, then the command returns a list describing the one named
73 option (this list will be identi cal to the corresponding sub‐
74 list of the value returned if no option is specified). If one
75 or more option-value pairs are specified, then the command modi‐
76 fies the given option(s) to have the given value(s); in this
77 case the command returns an empty string. Option may have any of
78 the values accepted by the image create pixmap command.
79
81 img-bmp, img-dted, img-gif, img-ico, img-intro, img-jpeg, img-pcx, img-
82 pixmap, img-png, img-ppm, img-ps, img-raw, img-sgi, img-sun, img-tga,
83 img-tiff, img-window, img-xbm, img-xpm
84
86 image handling, pixmap, tk
87
89 Copyright (c) 1995-2003 Jan Nijtmans <nijtmans@users.sourceforge.net>
90
91
92
93
94img-pixmap 1.3 img-pixmap(n)