LibGd 2.4.0-dev
GD Graphics library
Loading...
Searching...
No Matches
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
7extern "C" {
8#endif
9
10typedef struct {
11 char *color_name;
12 int red;
13 int green;
14 int blue;
15} gdColorMapEntry;
16
17typedef struct {
18 int num_entries;
19 gdColorMapEntry *entries;
20} gdColorMap;
21
22extern BGD_EXPORT_DATA_PROT gdColorMap GD_COLOR_MAP_X11;
23
24BGD_DECLARE(int)
25gdColorMapLookup(const gdColorMap color_map, const char *color_name, int *r, int *g, int *b);
26
27#ifdef __cplusplus
28}
29#endif
30
31#endif