2 Copyright 1999-2016 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 http://www.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 MagickWand pixel wand methods.
18 #ifndef _MAGICKWAND_PIXEL_WAND_H
19 #define _MAGICKWAND_PIXEL_WAND_H
21 #if defined(__cplusplus) || defined(c_plusplus)
25 typedef struct _PixelWand
28 extern WandExport char
29 *PixelGetColorAsNormalizedString(const PixelWand *),
30 *PixelGetColorAsString(const PixelWand *),
31 *PixelGetException(const PixelWand *,ExceptionType *);
33 extern WandExport double
34 PixelGetAlpha(const PixelWand *),
35 PixelGetBlack(const PixelWand *),
36 PixelGetBlue(const PixelWand *),
37 PixelGetCyan(const PixelWand *),
38 PixelGetFuzz(const PixelWand *),
39 PixelGetGreen(const PixelWand *),
40 PixelGetMagenta(const PixelWand *),
41 PixelGetAlpha(const PixelWand *),
42 PixelGetRed(const PixelWand *),
43 PixelGetYellow(const PixelWand *);
45 extern WandExport ExceptionType
46 PixelGetExceptionType(const PixelWand *);
48 extern WandExport MagickBooleanType
49 IsPixelWand(const PixelWand *),
50 IsPixelWandSimilar(PixelWand *,PixelWand *,const double),
51 PixelClearException(PixelWand *),
52 PixelSetColor(PixelWand *,const char *);
54 extern WandExport PixelInfo
55 PixelGetPixel(const PixelWand *);
57 extern WandExport PixelWand
58 *ClonePixelWand(const PixelWand *),
59 **ClonePixelWands(const PixelWand **,const size_t),
60 *DestroyPixelWand(PixelWand *),
61 **DestroyPixelWands(PixelWand **,const size_t),
63 **NewPixelWands(const size_t);
65 extern WandExport Quantum
66 PixelGetAlphaQuantum(const PixelWand *),
67 PixelGetBlackQuantum(const PixelWand *),
68 PixelGetBlueQuantum(const PixelWand *),
69 PixelGetCyanQuantum(const PixelWand *),
70 PixelGetGreenQuantum(const PixelWand *),
71 PixelGetIndex(const PixelWand *),
72 PixelGetMagentaQuantum(const PixelWand *),
73 PixelGetAlphaQuantum(const PixelWand *),
74 PixelGetRedQuantum(const PixelWand *),
75 PixelGetYellowQuantum(const PixelWand *);
77 extern WandExport size_t
78 PixelGetColorCount(const PixelWand *);
80 extern WandExport void
81 ClearPixelWand(PixelWand *),
82 PixelGetHSL(const PixelWand *,double *,double *,double *),
83 PixelGetMagickColor(const PixelWand *,PixelInfo *),
84 PixelGetQuantumPacket(const PixelWand *,PixelInfo *),
85 PixelGetQuantumPixel(const Image *,const PixelWand *,Quantum *),
86 PixelSetAlpha(PixelWand *,const double),
87 PixelSetAlphaQuantum(PixelWand *,const Quantum),
88 PixelSetBlack(PixelWand *,const double),
89 PixelSetBlackQuantum(PixelWand *,const Quantum),
90 PixelSetBlue(PixelWand *,const double),
91 PixelSetBlueQuantum(PixelWand *,const Quantum),
92 PixelSetColorFromWand(PixelWand *,const PixelWand *),
93 PixelSetColorCount(PixelWand *,const size_t),
94 PixelSetCyan(PixelWand *,const double),
95 PixelSetCyanQuantum(PixelWand *,const Quantum),
96 PixelSetFuzz(PixelWand *,const double),
97 PixelSetGreen(PixelWand *,const double),
98 PixelSetGreenQuantum(PixelWand *,const Quantum),
99 PixelSetHSL(PixelWand *,const double,const double,const double),
100 PixelSetIndex(PixelWand *,const Quantum),
101 PixelSetMagenta(PixelWand *,const double),
102 PixelSetMagentaQuantum(PixelWand *,const Quantum),
103 PixelSetPixelColor(PixelWand *,const PixelInfo *),
104 PixelSetAlpha(PixelWand *,const double),
105 PixelSetAlphaQuantum(PixelWand *,const Quantum),
106 PixelSetPixelColor(PixelWand *,const PixelInfo *),
107 PixelSetQuantumPixel(const Image *,const Quantum *,PixelWand *),
108 PixelSetRed(PixelWand *,const double),
109 PixelSetRedQuantum(PixelWand *,const Quantum),
110 PixelSetYellow(PixelWand *,const double),
111 PixelSetYellowQuantum(PixelWand *,const Quantum);
113 #if defined(__cplusplus) || defined(c_plusplus)