MagickWand  6.9.10
Convert, Edit, Or Compose Bitmap Images
pixel-wand.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2020 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  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)
22 extern "C" {
23 #endif
24 
25 typedef struct _PixelWand
26  PixelWand;
27 
28 extern WandExport char
31  *PixelGetException(const PixelWand *,ExceptionType *);
32 
33 extern WandExport double
34  PixelGetAlpha(const PixelWand *) magick_attribute((__pure__)),
35  PixelGetBlack(const PixelWand *) magick_attribute((__pure__)),
36  PixelGetBlue(const PixelWand *) magick_attribute((__pure__)),
37  PixelGetCyan(const PixelWand *) magick_attribute((__pure__)),
38  PixelGetFuzz(const PixelWand *) magick_attribute((__pure__)),
39  PixelGetGreen(const PixelWand *) magick_attribute((__pure__)),
40  PixelGetMagenta(const PixelWand *) magick_attribute((__pure__)),
41  PixelGetOpacity(const PixelWand *) magick_attribute((__pure__)),
42  PixelGetRed(const PixelWand *) magick_attribute((__pure__)),
43  PixelGetYellow(const PixelWand *) magick_attribute((__pure__));
44 
45 extern WandExport ExceptionType
47 
48 extern WandExport IndexPacket
49  PixelGetIndex(const PixelWand *);
50 
51 extern WandExport MagickBooleanType
52  IsPixelWand(const PixelWand *),
53  IsPixelWandSimilar(PixelWand *,PixelWand *,const double),
54  PixelClearException(PixelWand *),
55  PixelSetColor(PixelWand *,const char *);
56 
57 extern WandExport PixelWand
58  *ClonePixelWand(const PixelWand *),
59  **ClonePixelWands(const PixelWand **,const size_t),
60  *DestroyPixelWand(PixelWand *),
61  **DestroyPixelWands(PixelWand **,const size_t),
62  *NewPixelWand(void),
63  **NewPixelWands(const size_t);
64 
65 extern WandExport Quantum
66  PixelGetAlphaQuantum(const PixelWand *) magick_attribute((__pure__)),
67  PixelGetBlackQuantum(const PixelWand *) magick_attribute((__pure__)),
68  PixelGetBlueQuantum(const PixelWand *) magick_attribute((__pure__)),
69  PixelGetCyanQuantum(const PixelWand *) magick_attribute((__pure__)),
70  PixelGetGreenQuantum(const PixelWand *) magick_attribute((__pure__)),
71  PixelGetMagentaQuantum(const PixelWand *) magick_attribute((__pure__)),
72  PixelGetOpacityQuantum(const PixelWand *) magick_attribute((__pure__)),
73  PixelGetRedQuantum(const PixelWand *) magick_attribute((__pure__)),
74  PixelGetYellowQuantum(const PixelWand *) magick_attribute((__pure__));
75 
76 extern WandExport size_t
77  PixelGetColorCount(const PixelWand *) magick_attribute((__pure__));
78 
79 extern WandExport void
80  ClearPixelWand(PixelWand *),
81  PixelGetHSL(const PixelWand *,double *,double *,double *),
82  PixelGetMagickColor(const PixelWand *,MagickPixelPacket *),
83  PixelGetQuantumColor(const PixelWand *,PixelPacket *),
84  PixelSetAlpha(PixelWand *,const double),
85  PixelSetAlphaQuantum(PixelWand *,const Quantum),
86  PixelSetBlack(PixelWand *,const double),
87  PixelSetBlackQuantum(PixelWand *,const Quantum),
88  PixelSetBlue(PixelWand *,const double),
89  PixelSetBlueQuantum(PixelWand *,const Quantum),
90  PixelSetColorFromWand(PixelWand *,const PixelWand *),
91  PixelSetColorCount(PixelWand *,const size_t),
92  PixelSetCyan(PixelWand *,const double),
93  PixelSetCyanQuantum(PixelWand *,const Quantum),
94  PixelSetFuzz(PixelWand *,const double),
95  PixelSetGreen(PixelWand *,const double),
96  PixelSetGreenQuantum(PixelWand *,const Quantum),
97  PixelSetHSL(PixelWand *,const double,const double,const double),
98  PixelSetIndex(PixelWand *,const IndexPacket),
99  PixelSetMagenta(PixelWand *,const double),
100  PixelSetMagentaQuantum(PixelWand *,const Quantum),
101  PixelSetMagickColor(PixelWand *,const MagickPixelPacket *),
102  PixelSetOpacity(PixelWand *,const double),
103  PixelSetOpacityQuantum(PixelWand *,const Quantum),
104  PixelSetQuantumColor(PixelWand *,const PixelPacket *),
105  PixelSetRed(PixelWand *,const double),
106  PixelSetRedQuantum(PixelWand *,const Quantum),
107  PixelSetYellow(PixelWand *,const double),
108  PixelSetYellowQuantum(PixelWand *,const Quantum);
109 
110 #if defined(__cplusplus) || defined(c_plusplus)
111 }
112 #endif
113 
114 #endif
WandExport Quantum PixelGetGreenQuantum(const PixelWand *wand)
Definition: pixel-wand.c:1028
WandExport PixelWand * NewPixelWand(void)
Definition: pixel-wand.c:388
WandExport void PixelGetMagickColor(const PixelWand *wand, MagickPixelPacket *color)
Definition: pixel-wand.c:1192
WandExport void PixelSetGreen(PixelWand *wand, const double green)
Definition: pixel-wand.c:1874
WandExport PixelWand ** ClonePixelWands(const PixelWand **wands, const size_t number_wands)
Definition: pixel-wand.c:195
WandExport void PixelSetMagentaQuantum(PixelWand *wand, const Quantum magenta)
Definition: pixel-wand.c:2053
WandExport void PixelSetCyan(PixelWand *wand, const double cyan)
Definition: pixel-wand.c:1774
WandExport Quantum PixelGetBlueQuantum(const PixelWand *wand)
Definition: pixel-wand.c:669
WandExport Quantum PixelGetOpacityQuantum(const PixelWand *wand)
Definition: pixel-wand.c:1256
WandExport void PixelSetColorCount(PixelWand *wand, const size_t count)
Definition: pixel-wand.c:1707
WandExport void PixelSetYellowQuantum(PixelWand *wand, const Quantum yellow)
Definition: pixel-wand.c:2329
WandExport void PixelSetBlueQuantum(PixelWand *wand, const Quantum blue)
Definition: pixel-wand.c:1631
WandExport void PixelSetQuantumColor(PixelWand *wand, const PixelPacket *color)
Definition: pixel-wand.c:2190
WandExport void PixelSetHSL(PixelWand *wand, const double hue, const double saturation, const double lightness)
Definition: pixel-wand.c:1943
#define WandExport
Definition: method-attribute.h:71
WandExport double PixelGetMagenta(const PixelWand *wand)
Definition: pixel-wand.c:1128
WandExport double PixelGetGreen(const PixelWand *wand)
Definition: pixel-wand.c:997
WandExport void PixelSetAlphaQuantum(PixelWand *wand, const Quantum opacity)
Definition: pixel-wand.c:1497
Definition: pixel-wand.c:63
WandExport void PixelSetBlack(PixelWand *wand, const double black)
Definition: pixel-wand.c:1530
WandExport void PixelSetRedQuantum(PixelWand *wand, const Quantum red)
Definition: pixel-wand.c:2262
WandExport void PixelSetYellow(PixelWand *wand, const double yellow)
Definition: pixel-wand.c:2295
WandExport double PixelGetAlpha(const PixelWand *wand)
Definition: pixel-wand.c:514
WandExport MagickBooleanType IsPixelWand(const PixelWand *wand)
Definition: pixel-wand.c:359
WandExport MagickBooleanType magick_attribute((deprecated))
WandExport void PixelSetIndex(PixelWand *wand, const IndexPacket index)
Definition: pixel-wand.c:1985
WandExport void PixelGetHSL(const PixelWand *wand, double *hue, double *saturation, double *lightness)
Definition: pixel-wand.c:1063
WandExport PixelWand ** NewPixelWands(const size_t number_wands)
Definition: pixel-wand.c:442
WandExport void PixelSetBlue(PixelWand *wand, const double blue)
Definition: pixel-wand.c:1597
WandExport IndexPacket PixelGetIndex(const PixelWand *wand)
Definition: pixel-wand.c:1097
WandExport void PixelSetColorFromWand(PixelWand *wand, const PixelWand *color)
Definition: pixel-wand.c:1740
WandExport double PixelGetFuzz(const PixelWand *wand)
Definition: pixel-wand.c:966
WandExport double PixelGetCyan(const PixelWand *wand)
Definition: pixel-wand.c:816
WandExport void PixelSetCyanQuantum(PixelWand *wand, const Quantum cyan)
Definition: pixel-wand.c:1808
WandExport MagickBooleanType IsPixelWandSimilar(PixelWand *p, PixelWand *q, const double fuzz)
Definition: pixel-wand.c:321
WandExport void PixelSetOpacity(PixelWand *wand, const double opacity)
Definition: pixel-wand.c:2121
WandExport void PixelSetAlpha(PixelWand *wand, const double alpha)
Definition: pixel-wand.c:1462
WandExport void PixelSetBlackQuantum(PixelWand *wand, const Quantum black)
Definition: pixel-wand.c:1564
WandExport double PixelGetBlack(const PixelWand *wand)
Definition: pixel-wand.c:576
WandExport Quantum PixelGetBlackQuantum(const PixelWand *wand)
Definition: pixel-wand.c:607
WandExport Quantum PixelGetYellowQuantum(const PixelWand *wand)
Definition: pixel-wand.c:1428
WandExport PixelWand ** DestroyPixelWands(PixelWand **wand, const size_t number_wands)
Definition: pixel-wand.c:275
WandExport void ClearPixelWand(PixelWand *wand)
Definition: pixel-wand.c:109
WandExport void PixelSetOpacityQuantum(PixelWand *wand, const Quantum opacity)
Definition: pixel-wand.c:2157
WandExport void PixelSetMagenta(PixelWand *wand, const double magenta)
Definition: pixel-wand.c:2018
WandExport size_t PixelGetColorCount(const PixelWand *wand)
Definition: pixel-wand.c:785
WandExport void PixelSetRed(PixelWand *wand, const double red)
Definition: pixel-wand.c:2228
WandExport void PixelSetFuzz(PixelWand *wand, const double fuzz)
Definition: pixel-wand.c:1841
WandExport void PixelSetMagickColor(PixelWand *wand, const MagickPixelPacket *color)
Definition: pixel-wand.c:2086
WandExport PixelWand * DestroyPixelWand(PixelWand *wand)
Definition: pixel-wand.c:236
WandExport void PixelGetQuantumColor(const PixelWand *wand, PixelPacket *color)
Definition: pixel-wand.c:1289
WandExport MagickBooleanType PixelClearException(PixelWand *wand)
Definition: pixel-wand.c:482
WandExport char * PixelGetColorAsString(const PixelWand *wand)
Definition: pixel-wand.c:700
WandExport double PixelGetYellow(const PixelWand *wand)
Definition: pixel-wand.c:1397
WandExport MagickBooleanType PixelSetColor(PixelWand *wand, const char *color)
Definition: pixel-wand.c:1665
WandExport PixelWand * ClonePixelWand(const PixelWand *wand)
Definition: pixel-wand.c:142
WandExport void PixelSetGreenQuantum(PixelWand *wand, const Quantum green)
Definition: pixel-wand.c:1908
WandExport Quantum PixelGetRedQuantum(const PixelWand *wand)
Definition: pixel-wand.c:1366
WandExport char * PixelGetColorAsNormalizedString(const PixelWand *wand)
Definition: pixel-wand.c:741
WandExport ExceptionType PixelGetExceptionType(const PixelWand *wand)
Definition: pixel-wand.c:935
WandExport Quantum PixelGetCyanQuantum(const PixelWand *wand)
Definition: pixel-wand.c:847
WandExport double PixelGetRed(const PixelWand *wand)
Definition: pixel-wand.c:1335
WandExport double PixelGetBlue(const PixelWand *wand)
Definition: pixel-wand.c:638
WandExport Quantum PixelGetMagentaQuantum(const PixelWand *wand)
Definition: pixel-wand.c:1159
WandExport Quantum PixelGetAlphaQuantum(const PixelWand *wand)
Definition: pixel-wand.c:545
WandExport char * PixelGetException(const PixelWand *wand, ExceptionType *severity)
Definition: pixel-wand.c:881
WandExport double PixelGetOpacity(const PixelWand *wand)
Definition: pixel-wand.c:1225