2008-08-05 08:00:51 -07:00
|
|
|
#ifndef GD_COLOR_MAP_H
|
|
|
|
#define GD_COLOR_MAP_H 1
|
|
|
|
|
2013-04-12 06:01:43 -07:00
|
|
|
#include "gd.h"
|
2008-11-23 06:26:54 -08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2008-08-05 08:00:51 -07:00
|
|
|
|
2013-05-05 01:15:29 -07:00
|
|
|
typedef struct {
|
|
|
|
char *color_name;
|
|
|
|
int red;
|
|
|
|
int green;
|
|
|
|
int blue;
|
|
|
|
} gdColorMapEntry;
|
2008-08-05 08:00:51 -07:00
|
|
|
|
2013-05-05 01:15:29 -07:00
|
|
|
typedef struct {
|
|
|
|
int num_entries;
|
|
|
|
gdColorMapEntry *entries;
|
|
|
|
} gdColorMap;
|
2008-08-05 08:00:51 -07:00
|
|
|
|
2013-05-05 01:40:59 -07:00
|
|
|
extern BGD_EXPORT_DATA_PROT gdColorMap GD_COLOR_MAP_X11;
|
2008-08-05 08:00:51 -07:00
|
|
|
|
2013-05-05 01:15:29 -07:00
|
|
|
BGD_DECLARE(int) gdColorMapLookup(const gdColorMap color_map, const char *color_name, int *r, int *g, int *b);
|
2008-08-05 08:00:51 -07:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2008-11-23 06:26:54 -08:00
|
|
|
|
|
|
|
#endif
|