# Copyright (c) 1990 The Regents of the University of California. # Copyright (c) 1994-1996 Sun Microsystems, Inc. # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # # =head1 NAME Tk_GetPixmap, Tk_FreePixmap - allocate and free pixmaps =for category C Programming =head1 SYNOPSIS B<#include Etk.hE> Pixmap BIB<)> BIB<)> =head1 ARGUMENTS =over 4 =item Display *display (in) X display for the pixmap. =item Drawable d (in) Pixmap or window where the new pixmap will be used for drawing. =item "int" width (in) Width of pixmap. =item "int" height (in) Height of pixmap. =item "int" depth (in) Number of bits per pixel in pixmap. =item Pixmap pixmap (in) Pixmap to destroy. =back =head1 DESCRIPTION These procedures are identical to the Xlib procedures B and B, except that they have extra code to manage X resource identifiers so that identifiers for deleted pixmaps can be reused in the future. It is important for Tk applications to use these procedures rather than B and B; otherwise long-running applications may run out of resource identifiers. B creates a pixmap suitable for drawing in I, with dimensions given by I, I, and I, and returns its identifier. B destroys the pixmap given by I and makes its resource identifier available for reuse. =head1 KEYWORDS pixmap, resource identifier