|
NAMEXmtParseXpmData(), XmtParseXpmFile(), XmtFreeXmtImage() - parse an XPM pixmap into the intermediate XmtImage format.SYNOPSIS#include <Xmt/Xpm.h>
XmtImage *XmtParseXpmData(String *data) XmtImage *XmtParseXpmFile(String filename) void XmtFreeXmtImage(XmtImage *image) ARGUMENTSINPUTS
RETURNS XmtParseXpmData() and XmtParseXpmFile() return an XmtImage, or NULL, if the XPM data was invalid or the file could not be found. The returned XmtImage should be freed when no longer need with XmtFreeXmtImage(). DESCRIPTIONXmtParseXpmData() parses the specified array of strings (declared by an #included XPM file) into an XmtImage structure. On success, it returns a pointer to the allocated XmtImage. If the data was invalid, it returns NULL.XmtParseXpmFile() reads the contents of the specified file, and parses it into an XmtImage structure. It returns a pointer to an allocated XmtImage structure on success, or NULL if the file could not be read, or if the file contained invalid data. When the XmtImage returned by either of these functions is no longer needed, they may be freed by calling XmtFreeXmtImage(). An XmtImage structure is a parsed representation of an XPM pixmap file. The symbolic color names it contains have not yet been looked up, nor have any pixel values been allocated for a specific display and colormap. An XmtImage may be converted to a Pixmap in an additional step, by calling XmtCreatePixmapFromXmtImage(), or it may be cached for later lookup and conversion in the Xmt image cache by calling XmtRegisterImage(). SEE ALSOChapter 5, Using Icons,XmtCreatePixmapFromXmtImage(), XmtCreateXImageFromXmtImage(), XmtGetPixmap(), XmtLookupPixmap(), XmtRegisterImage().
Visit the GSP FreeBSD Man Page Interface. |