/*
 * @(#)picture.h
 *
 * Taken from xlock, many authors...
 *
 * All rights reserved.
 *
 * Permission to use, copy, modify, and distribute this software and
 * its documentation for any purpose and without fee is hereby granted,
 * provided that the above copyright notice appear in all copies and
 * that both that copyright notice and this permission notice appear in
 * supporting documentation, and that the name of the author not be
 * used in advertising or publicity pertaining to distribution of the
 * software without specific, written prior permission.
 *
 * This program is distributed in the hope that it will be "useful",
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 */

/* Header file for picture */

#ifndef _picture_h
#define _picture_h

#define IS_NONE 0
#define IS_XBMDONE 1            /* Only need one mono image */
#define IS_XBM 2
#define IS_XBMFILE 3
#define IS_XPM 4
#define IS_XPMFILE 5
/* These are not here but can be stolen from xlock later. */
#define IS_RASTERFILE 6
#define IS_MAGICKFILE 7

extern Bool fixedColors(Visual *visual, int depth, Bool install);
extern Bool getImage(Display *display, Window window, Visual *visual,
	Colormap colormap, int depth, XImage ** picture, char *filename,
	Bool install, int *graphicsFormat, Colormap *ncm);
extern void destroyImage(XImage **picture, int *graphicsFormat);

#endif /* _picture_h */
