blob: 60ab5acc3615ce770898d804c9d68b68555911e7 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001/*
Cristy7ce65e72015-12-12 18:03:16 -05002 Copyright 1999-2016 ImageMagick Studio LLC, a non-profit organization
cristy3ed852e2009-09-05 21:47:34 +00003 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 MagickWand pixel wand methods.
17*/
18#ifndef _MAGICKWAND_PIXEL_WAND_H
19#define _MAGICKWAND_PIXEL_WAND_H
20
21#if defined(__cplusplus) || defined(c_plusplus)
22extern "C" {
23#endif
24
25typedef struct _PixelWand
26 PixelWand;
27
28extern WandExport char
29 *PixelGetColorAsNormalizedString(const PixelWand *),
30 *PixelGetColorAsString(const PixelWand *),
31 *PixelGetException(const PixelWand *,ExceptionType *);
32
33extern 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 *),
cristyb6a294d2011-10-03 00:55:17 +000041 PixelGetAlpha(const PixelWand *),
cristy3ed852e2009-09-05 21:47:34 +000042 PixelGetRed(const PixelWand *),
43 PixelGetYellow(const PixelWand *);
44
45extern WandExport ExceptionType
46 PixelGetExceptionType(const PixelWand *);
47
cristy3ed852e2009-09-05 21:47:34 +000048extern WandExport MagickBooleanType
49 IsPixelWand(const PixelWand *),
50 IsPixelWandSimilar(PixelWand *,PixelWand *,const double),
51 PixelClearException(PixelWand *),
52 PixelSetColor(PixelWand *,const char *);
53
cristy28474bf2011-09-11 23:32:52 +000054extern WandExport PixelInfo
55 PixelGetPixel(const PixelWand *);
56
cristy3ed852e2009-09-05 21:47:34 +000057extern WandExport PixelWand
58 *ClonePixelWand(const PixelWand *),
cristybb503372010-05-27 20:51:26 +000059 **ClonePixelWands(const PixelWand **,const size_t),
cristy3ed852e2009-09-05 21:47:34 +000060 *DestroyPixelWand(PixelWand *),
cristybb503372010-05-27 20:51:26 +000061 **DestroyPixelWands(PixelWand **,const size_t),
cristy3ed852e2009-09-05 21:47:34 +000062 *NewPixelWand(void),
cristybb503372010-05-27 20:51:26 +000063 **NewPixelWands(const size_t);
cristy3ed852e2009-09-05 21:47:34 +000064
65extern WandExport Quantum
66 PixelGetAlphaQuantum(const PixelWand *),
67 PixelGetBlackQuantum(const PixelWand *),
68 PixelGetBlueQuantum(const PixelWand *),
69 PixelGetCyanQuantum(const PixelWand *),
70 PixelGetGreenQuantum(const PixelWand *),
cristy4c08aed2011-07-01 19:47:50 +000071 PixelGetIndex(const PixelWand *),
cristy3ed852e2009-09-05 21:47:34 +000072 PixelGetMagentaQuantum(const PixelWand *),
cristyb6a294d2011-10-03 00:55:17 +000073 PixelGetAlphaQuantum(const PixelWand *),
cristy3ed852e2009-09-05 21:47:34 +000074 PixelGetRedQuantum(const PixelWand *),
75 PixelGetYellowQuantum(const PixelWand *);
76
cristybb503372010-05-27 20:51:26 +000077extern WandExport size_t
cristy3ed852e2009-09-05 21:47:34 +000078 PixelGetColorCount(const PixelWand *);
79
80extern WandExport void
81 ClearPixelWand(PixelWand *),
82 PixelGetHSL(const PixelWand *,double *,double *,double *),
cristy4c08aed2011-07-01 19:47:50 +000083 PixelGetMagickColor(const PixelWand *,PixelInfo *),
cristy101ab702011-10-13 13:06:32 +000084 PixelGetQuantumPacket(const PixelWand *,PixelInfo *),
cristy4c08aed2011-07-01 19:47:50 +000085 PixelGetQuantumPixel(const Image *,const PixelWand *,Quantum *),
cristy3ed852e2009-09-05 21:47:34 +000086 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 *),
cristybb503372010-05-27 20:51:26 +000093 PixelSetColorCount(PixelWand *,const size_t),
cristy3ed852e2009-09-05 21:47:34 +000094 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),
cristy4c08aed2011-07-01 19:47:50 +0000100 PixelSetIndex(PixelWand *,const Quantum),
cristy3ed852e2009-09-05 21:47:34 +0000101 PixelSetMagenta(PixelWand *,const double),
102 PixelSetMagentaQuantum(PixelWand *,const Quantum),
cristyf82c4a02011-12-15 02:43:44 +0000103 PixelSetPixelColor(PixelWand *,const PixelInfo *),
cristyb6a294d2011-10-03 00:55:17 +0000104 PixelSetAlpha(PixelWand *,const double),
105 PixelSetAlphaQuantum(PixelWand *,const Quantum),
cristyf82c4a02011-12-15 02:43:44 +0000106 PixelSetPixelColor(PixelWand *,const PixelInfo *),
cristy4c08aed2011-07-01 19:47:50 +0000107 PixelSetQuantumPixel(const Image *,const Quantum *,PixelWand *),
cristy3ed852e2009-09-05 21:47:34 +0000108 PixelSetRed(PixelWand *,const double),
109 PixelSetRedQuantum(PixelWand *,const Quantum),
110 PixelSetYellow(PixelWand *,const double),
111 PixelSetYellowQuantum(PixelWand *,const Quantum);
112
113#if defined(__cplusplus) || defined(c_plusplus)
114}
115#endif
116
117#endif