*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: XpmCreateImage | Section: 3 | Source: OpenBSD | File: XpmCreateImage.3
XpmCreateImage(3) libXpm functions XpmCreateImage(3) NAME XpmCreateImage - create an XImage from an XPM SYNOPSIS int XpmCreateImageFromData(Display *display, char **data, XImage **image_return, XImage **shapeimage_return, XpmAttributes *attributes); int XpmCreateImageFromBuffer(Display *display, char *buffer, XImage **image_return, XImage **shapeimage_return, XpmAttributes *attributes); int XpmCreateImageFromXpmImage(Display *display, XpmImage *image, XImage *image_return, XImage *shapeimage_return, XpmAttributes *attributes); ARGUMENTS display Specifies the connection to the X server. data Specifies the location of the data. image_return Returns the image which is created. shapeimage_return Returns the shape mask image which is created if the color None is used. attributes Specifies the location of a structure to get and store informa- tion (or NULL). shapeimage Specifies the shape mask image which is created if any. DESCRIPTION XpmCreateImageFromData To create an XImage from an XPM data, use XpmCreateImageFromData(). The XpmCreateImageFromData() function allows you to include in your C program an XPM file which was written out by functions such as XpmWriteFileFromImage(3) or XpmWriteFileFromPixmap(3) without reading in the file. XpmCreateImageFromData() exactly works as XpmReadFile- ToImage(3) does and returns the same way. It just reads data instead of a file. Here again, it is the callers responsibility to free the returned images, the colors and possibly the data returned into the Xp- mAttributes structure. XpmCreateImageFromBuffer To create an XImage from an XPM buffer, use XpmCreateImageFromBuffer(). The XpmCreateImageFromBuffer() function works the same way as XpmRead- FileToImage(3), it just parses the buffer instead of the file. Be aware that the feature provided on some systems by XpmReadFileToIm- age(3) to deal with compressed files is not available here. XpmCreateImageFromXpmImage To create an XImage from an XpmImage, use XpmCreateImageFromXpmImage(). From the given XpmImage and XpmAttributes if not NULL, XpmCreateImage- FromXpmImage() allocates colors and creates X images following the same mechanism as XpmReadFileToImage(3). When finished the caller must free the images using XDestroyImage(3), the colors using XFreeColors(3), and possibly the data returned into the XpmAttributes using XpmFreeAttrib- utes(3). SEE ALSO XpmFreeAttributes(3), XpmReadFileToImage(3) X Version 11 libXpm 3.5.16 XpmCreateImage(3)

Navigation Options