gd-libgd / src / wbmp.h

#ifdef __cplusplus
extern "C" {
#endif

	/* WBMP
	 * ----
	 * WBMP Level 0: B/W, Uncompressed
	 * This implements the WBMP format as specified in WAPSpec 1.1 and 1.2.
	 * It does not support ExtHeaders as defined in the spec. The spec states
	 * that a WAP client does not need to implement ExtHeaders.
	 *
	 * (c) 2000 Johan Van den Brande <johan@vandenbrande.com>
	 *
	 * Header file
	 */
#ifndef __WBMP_H
#define __WBMP_H	1

	/* WBMP struct
	 * -----------
	 * A Wireless bitmap structure
	 */

	typedef struct Wbmp_ {
		int type;	/* type of the wbmp */
		int width;	/* width of the image */
		int height;	/* height of the image */
		int *bitmap;/* pointer to data: 0 = WHITE , 1 = BLACK */
	}
	Wbmp;

#define WBMP_WHITE  1
#define WBMP_BLACK  0

	/* Proto's
	 * -------
	 */
	void putmbi(int i, void (*putout)(int c, void *out), void *out);
	int getmbi(int (*getin)(void *in), void *in);
	int skipheader(int (*getin)(void *in), void *in);
	Wbmp *createwbmp(int width, int height, int color);
	int readwbmp(int (*getin)(void *in), void *in, Wbmp **wbmp);
	int writewbmp(Wbmp *wbmp, void (*putout)(int c, void *out), void *out);
	void freewbmp(Wbmp *wbmp);
	void printwbmp(Wbmp *wbmp);

#endif

#ifdef __cplusplus
}
#endif
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.