LibGd
2.4.0-dev
GD Graphics library
Loading...
Searching...
No Matches
src
wbmp.h
1
/* WBMP
2
* ----
3
* WBMP Level 0: B/W, Uncompressed
4
* This implements the WBMP format as specified in WAPSpec 1.1 and 1.2.
5
* It does not support ExtHeaders as defined in the spec. The spec states
6
* that a WAP client does not need to implement ExtHeaders.
7
*
8
* (c) 2000 Johan Van den Brande <johan@vandenbrande.com>
9
*
10
* Header file
11
*/
12
#ifndef __WBMP_H
13
#define __WBMP_H 1
14
15
#ifdef __cplusplus
16
extern
"C"
{
17
#endif
18
19
/* WBMP struct
20
* -----------
21
* A Wireless bitmap structure
22
*/
23
24
typedef
struct
Wbmp_ {
25
int
type;
/* type of the wbmp */
26
int
width;
/* width of the image */
27
int
height;
/* height of the image */
28
int
*bitmap;
/* pointer to data: 0 = WHITE , 1 = BLACK */
29
} Wbmp;
30
31
#define WBMP_WHITE 1
32
#define WBMP_BLACK 0
33
34
/* Proto's
35
* -------
36
*/
37
void
putmbi(
int
i,
void
(*putout)(
int
c,
void
*out),
void
*out);
38
int
getmbi(
int
(*getin)(
void
*in),
void
*in);
39
int
skipheader(
int
(*getin)(
void
*in),
void
*in);
40
Wbmp *createwbmp(
int
width,
int
height,
int
color);
41
int
readwbmp(
int
(*getin)(
void
*in),
void
*in, Wbmp **wbmp);
42
int
writewbmp(Wbmp *wbmp,
void
(*putout)(
int
c,
void
*out),
void
*out);
43
void
freewbmp(Wbmp *wbmp);
44
void
printwbmp(Wbmp *wbmp);
45
46
#ifdef __cplusplus
47
}
48
#endif
49
50
#endif
Generated by
1.9.8