1Tk_GetPixmap(3)              Tk Library Procedures             Tk_GetPixmap(3)
2
3
4
5______________________________________________________________________________
6

NAME

8       Tk_GetPixmap, Tk_FreePixmap - allocate and free pixmaps
9

SYNOPSIS

11       #include <tk.h>
12
13       Pixmap
14       Tk_GetPixmap(display, d, width, height, depth)
15
16       Tk_FreePixmap(display, pixmap)
17

ARGUMENTS

19       Display *display (in)            X display for the pixmap.
20
21       Drawable d (in)                  Pixmap  or window where the new pixmap
22                                        will be used for drawing.
23
24       int width (in)                   Width of pixmap.
25
26       int height (in)                  Height of pixmap.
27
28       int depth (in)                   Number of bits per pixel in pixmap.
29
30       Pixmap pixmap (in)               Pixmap to destroy.
31______________________________________________________________________________
32

DESCRIPTION

34       These procedures are identical to the Xlib procedures XCreatePixmap and
35       XFreePixmap,  except  that  they  have  extra code to manage X resource
36       identifiers so that identifiers for deleted pixmaps can  be  reused  in
37       the  future.   It  is important for Tk applications to use these proce‐
38       dures rather than XCreatePixmap and XFreePixmap;   otherwise  long-run‐
39       ning applications may run out of resource identifiers.
40
41       Tk_GetPixmap  creates  a  pixmap suitable for drawing in d, with dimen‐
42       sions given by width, height, and depth, and  returns  its  identifier.
43       Tk_FreePixmap  destroys  the  pixmap  given by pixmap and makes its re‐
44       source identifier available for reuse.
45

KEYWORDS

47       pixmap, resource identifier
48
49
50
51Tk                                    4.0                      Tk_GetPixmap(3)
Impressum