DragonFly On-Line Manual Pages

Search: Section:  


EZ_CreateLabelPixmapFromImageFile(3)                           EZWGL Functions

NAME

EZ_CreateXPixmapFromImageFile, EZ_CreateXPixmapFromBitmapFile, EZ_CreateXPixmapFromXpmData, EZ_CreateXPixmapFromXpmFile, EZ_FreeXPixmap - create/free native X pixmap from file or data

SYNOPSIS

#include <EZ.h> int EZ_CreateXPixmapFromImageFile(char *file, unsigned int *w_ret, unsigned int *h_ret, Pixmap *pixmap_ret) int EZ_CreateXPixmapFromXpmData(char **data, unsigned int *w_ret, unsigned int *h_ret, Pixmap *pixmap_ret, Pixmap *shape_ret) int EZ_CreateXPixmapFromXpmData(char *file, unsigned int *w_ret, unsigned int *h_ret, Pixmap *pixmap_ret, Pixmap *shape_ret) int EZ_CreateXPixmapFromBitmapFile(char *file, unsigned int *w_ret, unsigned int *h_ret, Pixmap *pixmap_ret, Pixmap *shape_ret) void EZ_FreeXPixmap(Pixmap pximap)

ARGUMENTS

file Specifies a unix file name. data Specifies an XPM data or an X bitmap data. w_ret, h_ret Specify the returns for the width and height of the X pixmap. pixmap_ret Specifies the returns for the X pixmap. shape_ret Specifies the returns for shape mask or NULL. pixmap Specifies an X pixmap.

DESCRIPTION

This set of functions create native X pixmaps from various sources. They return the identifier of the created pixmap if sucessful and return None otherwise. All these functions search for files in the following directories: the current directory, $EZ_LIBDIR, /usr/include/X11/bitmaps and /usr/include/X11/pixmaps. EZ_CreateXPixmapFromImageFile creates an X pixmap from an image file. Currently EZWGL reads images in PPM, GIF, XPM and JPEG formats. EZ_CreateLabelXFromXBitmapFile creates an X pixmap from an x-bitmap file. The created pixmap is a bitmap. EZ_CreateXPixmapFromXBitmapData creates a pixmap from an x-bitmap data. The created pixmap is a bitmap. EZ_CreateLabelPixmapFromXpmData creates a pixmap from an XPM data set. EZ_CreateLabelPixmapFromXpmFile creates a pixmap from an XPM file. EZ_FreeXPixmap frees the specified X pixmap. It is equivalent to XFreePixmap(EZ_GetDisplay(), pixmap)

SEE ALSO

EZ_ConfigureWidget(3), EZ_CreateXPixmapFromBitmapFile(3), EZ_CreateXPixmapFromXpmData(3) EZWGL EZ_CreateLabelPixmapFromImageFile(3)

Search: Section: