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