XFreePixmap(3)


HOME

XCreatePixmap

NAME
SYNTAX
ARGUMENTS
DESCRIPTION
DIAGNOSTICS
SEE ALSO

NAME

XCreatePixmap, XFreePixmap − create or destroy pixmaps

SYNTAX

Pixmap XCreatePixmap(Display *display, Drawable d, unsigned int width, unsigned int height, unsigned int depth);

int XFreePixmap(Display *display, Pixmap pixmap);

ARGUMENTS

d

Specifies which screen the pixmap is created on.

depth

Specifies the depth of the pixmap.

display

Specifies the connection to the X server.

pixmap

Specifies the pixmap.

width

height

Specify the width and height, which define the dimensions of the pixmap.

DESCRIPTION

The XCreatePixmap function creates a pixmap of the width, height, and depth you specified and returns a pixmap ID that identifies it. It is valid to pass an InputOnly window to the drawable argument. The width and height arguments must be nonzero, or a BadValue error results. The depth argument must be one of the depths supported by the screen of the specified drawable, or a BadValue error results.

The server uses the specified drawable to determine on which screen to create the pixmap. The pixmap can be used only on this screen and only with other drawables of the same depth (see XCopyPlane for an exception to this rule). The initial contents of the pixmap are undefined.

XCreatePixmap can generate BadAlloc, BadDrawable, and BadValue errors.

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

BadAlloc

The server failed to allocate the requested resource or server memory.

BadDrawable

A value for a Drawable argument does not name a defined Window or Pixmap.

BadPixmap

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

BadValue

Some numeric value falls outside the range of values accepted by the request. Unless a specific range is specified for an argument, the full range defined by the argument’s type is accepted. Any argument defined as a set of alternatives can generate this error.

SEE ALSO

XCopyArea(3)
Xlib − C Language X Interface



More Linux Commands

manpages/Tcl_DeleteCommand.3.html
Tcl_DeleteCommand(3) - implement new commands in C (ManPage)
Tcl_CreateObjCommand defines a new command in interp and associates it with procedure proc such that whenever name is invoked as a Tcl command (e.g., via a call

manpages/header_checks.5.html
header_checks.5 - header_checks(5) - Postfix built-in content inspection......
This document describes access control on the content of message headers and message body lines; it is implemented by the Postfix cleanup(8) server before mail

manpages/Tk_UndefineCursor.3.html
Tk_UndefineCursor(3) - change window configuration or attrib
These procedures are analogous to the X library procedures with similar names, such as XConfigureWindow. Each one of the above procedures calls the correspondin

manpages/optionFindValue.3.html
optionFindValue(3) find a hierarcicaly valued option instanc
This routine will find an entry in a nested value option or configurable. It will search through the list and return a matching entry. odesc an option with a ne

manpages/DPMSCapable.3.html
DPMSCapable(3) - returns the DPMS capability of the X server
The DPMSCapable function returns the Display Power Management Signaling (DPMS) capability of the X server, either TRUE (capable of DPMS) or FALSE (incapable of

manpages/afmtodit.1.html
afmtodit(1) - create font files for use with groff -Tps.....
afmtodit creates a font file for use with groff, grops, and gropdf. afmtodit is written in perl; you must have perl version 5.004 or newer installed in order to

manpages/git-branch.1.html
git-branch(1) - List, create, or delete branches (Man Page)
With no arguments, existing branches are listed and the current branch will be highlighted with an asterisk. Option -r causes the remote-tracking branches to be

manpages/Mail::SPF::Util.3pm.html
Mail::SPF::Util(3pm) - Mail::SPF utility class (Man Page)...
Mail::SPF::Util is Mail::SPFs utility class. Class methods The following class methods are provided: hostname: returns string Returns the fully qualified domain

manpages/daemon.7.html
daemon(7) - Writing and Packaging System Daemons (Man Page)
A daemon is a service process that runs in the background and supervises the system or provides functionality to other processes. Traditionally, daemons are imp

manpages/gvfsd.1.html
gvfsd(1) Main daemon for gvfs (Commands - Linux man page)...
gvfsd is the main daemon for the gvfs virtual filesystem. It provides the org.gtk.vfs.Daemon name on the session bus. gvfsd is autostarted by GIO clients if it

manpages/Ttk_PadBox.3.html
Ttk_PadBox(3) - Tk themed geometry utilities (Man Page).....
The Ttk_Box structure represents a rectangular region of a window: typedef struct { int x; int y; int width; int height; } Ttk_Box; All coordinates are relative

manpages/XtGetValues.3.html
XtGetValues(3) - obtain and set widget resources (Man Page)
The XtSetValues function starts with the resources specified for the Core widget fields and proceeds down the subclass chain to the widget. At each stage, it wr





We can't live, work or learn in freedom unless the software we use is free.