MagickCore
6.8.5
color.h
Go to the documentation of this file.
1
/*
2
Copyright 1999-2013 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.
6
obtain a copy of the License at
7
8
http://www.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
#if defined(__cplusplus) || defined(c_plusplus)
22
extern
"C"
{
23
#endif
24
25
#include "
magick/pixel.h
"
26
#include "
magick/exception.h
"
27
28
typedef
enum
29
{
30
UndefinedCompliance
,
31
NoCompliance
= 0x0000,
32
SVGCompliance
= 0x0001,
33
X11Compliance
= 0x0002,
34
XPMCompliance
= 0x0004,
35
AllCompliance
= 0x7fffffff
36
}
ComplianceType
;
37
38
typedef
struct
_ColorInfo
39
{
40
char
41
*
path
,
42
*
name
;
43
44
ComplianceType
45
compliance
;
46
47
MagickPixelPacket
48
color
;
49
50
MagickBooleanType
51
exempt
,
52
stealth
;
53
54
struct
_ColorInfo
55
*
previous
,
56
*
next
;
/* deprecated, use GetColorInfoList() */
57
58
size_t
59
signature
;
60
}
ColorInfo
;
61
62
typedef
struct
_ErrorInfo
63
{
64
double
65
mean_error_per_pixel
,
66
normalized_mean_error
,
67
normalized_maximum_error
;
68
}
ErrorInfo
;
69
70
extern
MagickExport
char
71
**
GetColorList
(
const
char
*,
size_t
*,
ExceptionInfo
*);
72
73
extern
MagickExport
const
ColorInfo
74
*
GetColorInfo
(
const
char
*,
ExceptionInfo
*),
75
**
GetColorInfoList
(
const
char
*,
size_t
*,
ExceptionInfo
*);
76
77
extern
MagickExport
MagickBooleanType
78
ColorComponentGenesis
(
void
),
79
IsColorSimilar
(
const
Image
*,
const
PixelPacket
*,
const
PixelPacket
*),
80
IsGrayImage
(
const
Image
*,
ExceptionInfo
*),
81
IsImageSimilar
(
const
Image
*,
const
Image
*,ssize_t *x,ssize_t *y,
82
ExceptionInfo
*),
83
IsMagickColorSimilar
(
const
MagickPixelPacket
*,
const
MagickPixelPacket
*),
84
IsMonochromeImage
(
const
Image
*,
ExceptionInfo
*),
85
IsOpacitySimilar
(
const
Image
*,
const
PixelPacket
*,
const
PixelPacket
*),
86
IsOpaqueImage
(
const
Image
*,
ExceptionInfo
*),
87
ListColorInfo
(FILE *,
ExceptionInfo
*),
88
QueryColorCompliance
(
const
char
*,
const
ComplianceType
,
PixelPacket
*,
89
ExceptionInfo
*),
90
QueryColorDatabase
(
const
char
*,
PixelPacket
*,
ExceptionInfo
*),
91
QueryColorname
(
const
Image
*,
const
PixelPacket
*,
const
ComplianceType
,
char
*,
92
ExceptionInfo
*),
93
QueryMagickColorCompliance
(
const
char
*,
const
ComplianceType
,
94
MagickPixelPacket
*,
ExceptionInfo
*),
95
QueryMagickColor
(
const
char
*,
MagickPixelPacket
*,
ExceptionInfo
*),
96
QueryMagickColorname
(
const
Image
*,
const
MagickPixelPacket
*,
97
const
ComplianceType
,
char
*,
ExceptionInfo
*);
98
99
extern
MagickExport
void
100
ColorComponentTerminus
(
void
),
101
ConcatenateColorComponent
(
const
MagickPixelPacket
*,
const
ChannelType
,
102
const
ComplianceType
,
char
*),
103
GetColorTuple
(
const
MagickPixelPacket
*,
const
MagickBooleanType
,
char
*);
104
105
#if defined(__cplusplus) || defined(c_plusplus)
106
}
107
#endif
108
109
#endif
magick
color.h
Generated by
1.8.1.2