Back to index

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

Go to the source code of this file.

Functions

void xpmCreatePixmapFromImage (Display *display, Drawable d, XImage *ximage, Pixmap *pixmap_return)

Function Documentation

void xpmCreatePixmapFromImage ( Display *  display,
Drawable  d,
XImage *  ximage,
Pixmap *  pixmap_return 
)

Definition at line 45 of file CrPFrI.c.

{
    GC gc;

    *pixmap_return = XCreatePixmap(display, d, ximage->width,
                               ximage->height, ximage->depth);
    gc = XCreateGC(display, *pixmap_return, 0, NULL);

    XPutImage(display, *pixmap_return, gc, ximage, 0, 0, 0, 0,
             ximage->width, ximage->height);

    XFreeGC(display, gc);
}

Here is the caller graph for this function: