LibGd
2.4.0-dev
GD Graphics library
Loading...
Searching...
No Matches
src
gd_color_map.h
1
#ifndef GD_COLOR_MAP_H
2
#define GD_COLOR_MAP_H 1
3
4
#include "gd.h"
5
6
#ifdef __cplusplus
7
extern
"C"
{
8
#endif
9
10
typedef
struct
{
11
char
*color_name;
12
int
red;
13
int
green;
14
int
blue;
15
} gdColorMapEntry;
16
17
typedef
struct
{
18
int
num_entries;
19
gdColorMapEntry *entries;
20
} gdColorMap;
21
22
extern
BGD_EXPORT_DATA_PROT gdColorMap GD_COLOR_MAP_X11;
23
24
BGD_DECLARE(
int
)
25
gdColorMapLookup(
const
gdColorMap color_map,
const
char
*color_name,
int
*r,
int
*g,
int
*b);
26
27
#ifdef __cplusplus
28
}
29
#endif
30
31
#endif
Generated by
1.9.8