GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
XpmCreateData(3) libXpm functions XpmCreateData(3)

XpmCreateData - create an Data structure

int XpmCreateDataFromImage(Display *display, char ***data_return,
XImage *image, XImage *shapeimage, XpmAttributes *attributes);
int XpmCreateDataFromPixmap(Display *display, char ***data_return,
Pixmap pixmap, Pixmap shapemask, XpmAttributes *attributes);
int XpmCreateDataFromXpmImage(char ***data_return, XpmImage *image,
XpmInfo *info);

Specifies the connection to the X server.
Returns the data which is created.
Specifies the pixmap.
Specifies the shape mask pixmap.
Specifies the location of a structure containing information (or NULL).
Specifies the location of a structure to get information.
Specifies the image

In some cases, one may want to create an XPM data from an XImage, to do so use XpmCreateDataFromImage(). The XpmCreateDataFromImage() function exactly works as XpmWriteFileFromImage(3) does and returns the same way. It just writes to a single block malloc’ed data instead of to a file. It is the caller’s responsibility to free the data, using XpmFree(3) when finished.

XpmCreateDataFromPixmap() creates an XPM data from a Pixmap. The XpmCreateDataFromPixmap() function uses XGetImage(3) to get from the given pixmaps the related X images which are passed to XpmCreateDataFromImage(). Then it destroys the created images using XDestroyImage(3). XpmCreateDataFromPixmap() returns the same errors as XpmCreateDataFromImage().

XpmCreateDataFromXpmImage() creates an XPM data from an XpmImage. The XpmCreateDataFromXpmImage() function writes out the given image to a single block malloc’ed data in XPM format. If insufficient working storage is allocated, it returns XpmNoMemory, and returns XpmSuccess on success. If the passed XpmInfo structure pointer is not NULL, XpmCreateDataFromXpmImage() looks for the following attributes: XpmExtensions, and XpmHotspot, and writes the related information out as well. It is the caller’s responsibility to free the data, using XpmFree(3) when finished.

XpmFree(3), XpmWriteFileFromImage(3)

libXpm 3.5.17 X Version 11

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.