MagickCore  7.0.11
color.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2021 ImageMagick Studio LLC, a non-profit organization
3  dedicated to making software imaging solutions freely available.
4 
5  You may not use this file except in compliance with the License. You may
6  obtain a copy of the License at
7 
8  https://imagemagick.org/script/license.php
9 
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.
15 
16  MagickCore image color methods.
17 */
18 #ifndef MAGICKCORE_COLOR_H
19 #define MAGICKCORE_COLOR_H
20 
21 #include "MagickCore/pixel.h"
22 #include "MagickCore/exception.h"
23 
24 #if defined(__cplusplus) || defined(c_plusplus)
25 extern "C" {
26 #endif
27 
28 typedef enum
29 {
31  NoCompliance = 0x0000,
32  CSSCompliance = 0x0001,
33  SVGCompliance = 0x0001,
34  X11Compliance = 0x0002,
35  XPMCompliance = 0x0004,
36  MVGCompliance = 0x0008,
37  AllCompliance = 0x7fffffff
39 
40 typedef enum
41 {
55 
56 typedef struct _ColorInfo
57 {
58  char
59  *path,
60  *name;
61 
64 
65  PixelInfo
67 
70  stealth;
71 
72  size_t
74 } ColorInfo;
75 
76 typedef struct _ErrorInfo
77 {
78  double
82 } ErrorInfo;
83 
84 extern MagickExport char
85  **GetColorList(const char *,size_t *,ExceptionInfo *);
86 
87 extern MagickExport const ColorInfo
88  *GetColorInfo(const char *,ExceptionInfo *),
89  **GetColorInfoList(const char *,size_t *,ExceptionInfo *);
90 
92  IsEquivalentImage(const Image *,const Image *,ssize_t *x,ssize_t *y,
93  ExceptionInfo *),
94  ListColorInfo(FILE *,ExceptionInfo *),
95  QueryColorCompliance(const char *,const ComplianceType,PixelInfo *,
96  ExceptionInfo *),
97  QueryColorname(const Image *,const PixelInfo *,const ComplianceType,
98  char *,ExceptionInfo *);
99 
100 extern MagickExport void
102  const ComplianceType,char *),
103  GetColorTuple(const PixelInfo *,const MagickBooleanType,char *);
104 
105 #if defined(__cplusplus) || defined(c_plusplus)
106 }
107 #endif
108 
109 #endif
MagickExport MagickBooleanType ListColorInfo(FILE *, ExceptionInfo *)
MagickExport MagickBooleanType IsEquivalentImage(const Image *, const Image *, ssize_t *x, ssize_t *y, ExceptionInfo *)
MagickExport const ColorInfo * GetColorInfo(const char *, ExceptionInfo *)
ComplianceType compliance
Definition: color.h:63
struct _ColorInfo ColorInfo
MagickExport const ColorInfo ** GetColorInfoList(const char *, size_t *, ExceptionInfo *)
Definition: color.c:1282
double mean_error_per_pixel
Definition: color.h:79
MagickBooleanType exempt
Definition: color.h:69
Definition: image.h:151
double normalized_mean_error
Definition: color.h:79
char * path
Definition: color.h:59
MagickBooleanType
Definition: magick-type.h:169
char * name
Definition: color.h:59
PixelInfo color
Definition: color.h:66
MagickExport MagickBooleanType QueryColorname(const Image *, const PixelInfo *, const ComplianceType, char *, ExceptionInfo *)
MagickExport void ConcatenateColorComponent(const PixelInfo *, const PixelChannel, const ComplianceType, char *)
IlluminantType
Definition: color.h:40
PixelChannel
Definition: pixel.h:70
MagickExport void GetColorTuple(const PixelInfo *, const MagickBooleanType, char *)
Definition: color.c:1518
double normalized_maximum_error
Definition: color.h:79
struct _ErrorInfo ErrorInfo
MagickExport MagickBooleanType QueryColorCompliance(const char *, const ComplianceType, PixelInfo *, ExceptionInfo *)
#define MagickExport
size_t signature
Definition: color.h:73
MagickExport char ** GetColorList(const char *, size_t *, ExceptionInfo *)
Definition: color.c:1375
MagickBooleanType stealth
Definition: color.h:69
ComplianceType
Definition: color.h:28