1
2
3
4
5
6
7
8
9
10
11
12 #ifndef __WBMP_H
13 #define __WBMP_H 1
14
15 #ifdef HAVE_CONFIG_H
16 #include "config.h"
17 #endif
18
19 #include "php_compat.h"
20
21
22
23
24
25
26
27 typedef struct Wbmp_
28 {
29 int type;
30 int width;
31 int height;
32 int *bitmap;
33 } Wbmp;
34
35 #define WBMP_WHITE 1
36 #define WBMP_BLACK 0
37
38
39
40
41
42
43 void putmbi( int i, void (*putout)(int c, void *out), void *out);
44 int getmbi ( int (*getin)(void *in), void *in );
45 int skipheader( int (*getin)(void *in), void *in );
46 Wbmp *createwbmp( int width, int height, int color );
47 int readwbmp( int (*getin)(void *in), void *in, Wbmp **wbmp );
48 int writewbmp( Wbmp *wbmp, void (*putout)( int c, void *out), void *out);
49 void freewbmp( Wbmp *wbmp );
50 void printwbmp( Wbmp *wbmp );
51
52 #endif