XFreePixmap

Syntax

XFreePixmap(display, pixmap)
      Display *display;
      Pixmap pixmap;

Arguments

display Specifies the connection to the X server.
pixmap Specifies the pixmap.

Description

The XFreePixmap() function first deletes the association between the pixmap ID and the pixmap. Then, the X server frees the pixmap storage when there are no references to it. The pixmap should never be referenced again.

XFreePixmap() can generate a BadPixmap error.

Diagnostics

BadPixmap A value for a Pixmap argument does not name a defined Pixmap.

See also

XCreatePixmap(), XCopyArea(), "Creating and Freeing Pixmaps"
Christophe Tronche, ch@tronche.com