2 Copyright 1999-2018 ImageMagick Studio LLC, a non-profit organization
3 dedicated to making software imaging solutions freely available.
5 You may not use this file except in compliance with the License.
6 obtain a copy of the License at
8 https://imagemagick.org/script/license.php
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
16 MagickCore image color methods.
18 #ifndef MAGICKCORE_COLOR_H
19 #define MAGICKCORE_COLOR_H
21 #include "MagickCore/pixel.h"
22 #include "MagickCore/exception.h"
24 #if defined(__cplusplus) || defined(c_plusplus)
31 NoCompliance = 0x0000,
32 CSSCompliance = 0x0001,
33 SVGCompliance = 0x0001,
34 X11Compliance = 0x0002,
35 XPMCompliance = 0x0004,
36 MVGCompliance = 0x0008,
37 AllCompliance = 0x7fffffff
40 typedef struct _ColorInfo
60 typedef struct _ErrorInfo
64 normalized_mean_error,
65 normalized_maximum_error;
68 extern MagickExport char
69 **GetColorList(const char *,size_t *,ExceptionInfo *);
71 extern MagickExport const ColorInfo
72 *GetColorInfo(const char *,ExceptionInfo *),
73 **GetColorInfoList(const char *,size_t *,ExceptionInfo *);
75 extern MagickExport MagickBooleanType
76 IsEquivalentImage(const Image *,const Image *,ssize_t *x,ssize_t *y,
78 ListColorInfo(FILE *,ExceptionInfo *),
79 QueryColorCompliance(const char *,const ComplianceType,PixelInfo *,
81 QueryColorname(const Image *,const PixelInfo *,const ComplianceType,
82 char *,ExceptionInfo *);
84 extern MagickExport void
85 ConcatenateColorComponent(const PixelInfo *,const PixelChannel,
86 const ComplianceType,char *),
87 GetColorTuple(const PixelInfo *,const MagickBooleanType,char *);
89 #if defined(__cplusplus) || defined(c_plusplus)