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
33

DESCRIPTION

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

KEYWORDS

49       pixmap, resource identifier
50
51
52
53Tk                                    4.0                      Tk_GetPixmap(3)
Impressum