1 /* 2 Copyright (C) 2003 - 2020 GraphicsMagick Group 3 Copyright (C) 2002 ImageMagick Studio 4 5 This program is covered by multiple licenses, which are described in 6 Copyright.txt. You should have received a copy of Copyright.txt with this 7 package; otherwise see http://www.graphicsmagick.org/www/Copyright.html. 8 9 GraphicsMagick Color Lookup Methods. 10 */ 11 #ifndef _MAGICK_COLOR_LOOKUP_H 12 #define _MAGICK_COLOR_LOOKUP_H 13 14 #if defined(__cplusplus) || defined(c_plusplus) 15 extern "C" { 16 #endif /* defined(__cplusplus) || defined(c_plusplus) */ 17 18 /* 19 Specifications that color is compliant with. 20 */ 21 typedef enum 22 { 23 UndefinedCompliance = 0x0000, 24 NoCompliance = 0x0000, 25 SVGCompliance = 0x0001, 26 X11Compliance = 0x0002, 27 XPMCompliance = 0x0004, 28 AllCompliance = 0xffff 29 } ComplianceType; 30 31 extern MagickExport char 32 **GetColorList(const char *pattern,unsigned long *number_colors); 33 34 extern MagickExport unsigned int 35 QueryColorDatabase(const char *name,PixelPacket *color,ExceptionInfo *exception), 36 QueryColorname(const Image *image,const PixelPacket *color, 37 const ComplianceType compliance,char *name,ExceptionInfo *exception); 38 39 #if defined(MAGICK_IMPLEMENTATION) 40 # include "magick/color_lookup-private.h" 41 #endif /* defined(MAGICK_IMPLEMENTATION) */ 42 43 #if defined(__cplusplus) || defined(c_plusplus) 44 } 45 #endif /* defined(__cplusplus) || defined(c_plusplus) */ 46 47 #endif /* _MAGICK_COLOR_LOOKUP_H */ 48 49 /* 50 * Local Variables: 51 * mode: c 52 * c-basic-offset: 2 53 * fill-column: 78 54 * End: 55 */ 56