Back to index

plt-scheme  4.2.1
CrIFrP.c File Reference
#include "xpmP.h"

Go to the source code of this file.


void xpmCreateImageFromPixmap (Display *display, Pixmap pixmap, XImage **ximage_return, unsigned int *width, unsigned int *height)

Function Documentation

void xpmCreateImageFromPixmap ( Display *  display,
Pixmap  pixmap,
XImage **  ximage_return,
unsigned int width,
unsigned int height 

Definition at line 45 of file CrIFrP.c.

    unsigned int dum;
    int dummy;
    Window win;

    if (*width == 0 && *height == 0)
       XGetGeometry(display, pixmap, &win, &dummy, &dummy,
                   width, height, &dum, &dum);

    *ximage_return = XGetImage(display, pixmap, 0, 0, *width, *height,
                            AllPlanes, ZPixmap);

Here is the caller graph for this function: