/* * Mcde/Image.h -- MCDE: a picture file as a pixmap (libDtSvc, * DtUtil2/McdeImage.c) * * License: CNCL 1.0 (Could Not Care Less), see LICENSE at the top of the tree. * * XmGetPixmap(3) for every format Motif reads, except PNG, which libpng * reads here: Motif 2.3.8 draws a PNG without alpha as its blue channel * only (lib/Xm/Png.c; docs/reference/motif-png.txt in the Makronix tree). */ #ifndef _Mcde_Image_h #define _Mcde_Image_h #include #ifdef __cplusplus extern "C" { #endif /* PATH as a pixmap of the screen's depth, transparency over BG; FG and BG * colour a bitmap as XmGetPixmap does. XmUNSPECIFIED_PIXMAP when the file * cannot be read. */ Pixmap McdeImageGetPixmap(Screen *screen, const char *path, Pixel fg, Pixel bg); /* gives back a pixmap of McdeImageGetPixmap, from Motif's cache or not */ void McdeImageFreePixmap(Screen *screen, Pixmap pixmap); #ifdef __cplusplus } #endif #endif /* _Mcde_Image_h */