MagickWand  6.9.12-38
Convert, Edit, Or Compose Bitmap Images
pixel-wand.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  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
55  PixelSetColor(PixelWand *,const char *);
56 
57 extern WandExport PixelWand
59  **ClonePixelWands(const PixelWand **,const size_t),
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
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),
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),
101  PixelSetMagickColor(PixelWand *,const MagickPixelPacket *),
102  PixelSetOpacity(PixelWand *,const double),
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
PixelGetExceptionType
WandExport ExceptionType PixelGetExceptionType(const PixelWand *)
Definition: pixel-wand.c:923
PixelGetYellowQuantum
WandExport Quantum PixelGetYellowQuantum(const PixelWand *wand)
Definition: pixel-wand.c:1416
PixelGetColorCount
WandExport size_t PixelGetColorCount(const PixelWand *wand)
Definition: pixel-wand.c:773
PixelSetRed
WandExport void PixelSetRed(PixelWand *wand, const double red)
Definition: pixel-wand.c:2216
PixelGetMagenta
WandExport double PixelGetMagenta(const PixelWand *) magick_attribute((__pure__))
PixelGetQuantumColor
WandExport void PixelGetQuantumColor(const PixelWand *wand, PixelPacket *color)
Definition: pixel-wand.c:1277
PixelSetIndex
WandExport void PixelSetIndex(PixelWand *, const IndexPacket)
PixelSetOpacityQuantum
WandExport void PixelSetOpacityQuantum(PixelWand *, const Quantum)
PixelGetColorAsString
WandExport char * PixelGetColorAsString(const PixelWand *)
PixelSetMagickColor
WandExport void PixelSetMagickColor(PixelWand *wand, const MagickPixelPacket *color)
Definition: pixel-wand.c:2074
PixelSetQuantumColor
WandExport void PixelSetQuantumColor(PixelWand *wand, const PixelPacket *color)
Definition: pixel-wand.c:2178
PixelGetYellow
WandExport double PixelGetYellow(const PixelWand *) magick_attribute((__pure__))
Definition: pixel-wand.c:1385
PixelGetAlpha
WandExport double PixelGetAlpha(const PixelWand *) magick_attribute((__pure__))
PixelSetBlack
WandExport void PixelSetBlack(PixelWand *, const double)
PixelSetHSL
WandExport void PixelSetHSL(PixelWand *, const double, const double, const double)
magick-wand-private.h
PixelSetIndex
WandExport void PixelSetIndex(PixelWand *wand, const IndexPacket index)
Definition: pixel-wand.c:1973
PixelSetAlphaQuantum
WandExport void PixelSetAlphaQuantum(PixelWand *wand, const Quantum opacity)
Definition: pixel-wand.c:1485
PixelGetFuzz
WandExport double PixelGetFuzz(const PixelWand *) magick_attribute((__pure__))
PixelGetGreen
WandExport double PixelGetGreen(const PixelWand *) magick_attribute((__pure__))
PixelSetFuzz
WandExport void PixelSetFuzz(PixelWand *, const double)
PixelSetCyanQuantum
WandExport void PixelSetCyanQuantum(PixelWand *, const Quantum)
_PixelWand
Definition: pixel-wand.c:64
PixelSetAlphaQuantum
WandExport void PixelSetAlphaQuantum(PixelWand *, const Quantum)
PixelGetExceptionType
WandExport ExceptionType PixelGetExceptionType(const PixelWand *wand)
Definition: pixel-wand.c:923
PixelGetOpacity
WandExport double PixelGetOpacity(const PixelWand *) magick_attribute((__pure__))
PixelSetBlue
WandExport void PixelSetBlue(PixelWand *, const double)
PixelSetYellowQuantum
WandExport void PixelSetYellowQuantum(PixelWand *, const Quantum)
Definition: pixel-wand.c:2317
PixelGetIndex
WandExport IndexPacket PixelGetIndex(const PixelWand *wand)
Definition: pixel-wand.c:1085
PixelSetOpacityQuantum
WandExport void PixelSetOpacityQuantum(PixelWand *wand, const Quantum opacity)
Definition: pixel-wand.c:2145
ClonePixelWand
WandExport PixelWand * ClonePixelWand(const PixelWand *)
PixelSetColor
WandExport MagickBooleanType PixelSetColor(PixelWand *wand, const char *color)
Definition: pixel-wand.c:1653
PixelSetGreenQuantum
WandExport void PixelSetGreenQuantum(PixelWand *, const Quantum)
IsPixelWand
WandExport MagickBooleanType IsPixelWand(const PixelWand *wand)
Definition: pixel-wand.c:353
PixelSetRedQuantum
WandExport void PixelSetRedQuantum(PixelWand *, const Quantum)
_PixelWand::signature
size_t signature
Definition: pixel-wand.c:84
PixelGetColorAsNormalizedString
WandExport char * PixelGetColorAsNormalizedString(const PixelWand *wand)
Definition: pixel-wand.c:729
PixelGetBlack
WandExport double PixelGetBlack(const PixelWand *) magick_attribute((__pure__))
PixelGetException
WandExport char * PixelGetException(const PixelWand *wand, ExceptionType *severity)
Definition: pixel-wand.c:869
PixelSetColor
WandExport MagickBooleanType PixelSetColor(PixelWand *, const char *)
Definition: pixel-wand.c:1653
NewPixelWands
WandExport PixelWand ** NewPixelWands(const size_t)
Definition: pixel-wand.c:433
PixelGetBlackQuantum
WandExport Quantum PixelGetBlackQuantum(const PixelWand *wand)
Definition: pixel-wand.c:595
PixelGetCyanQuantum
WandExport Quantum PixelGetCyanQuantum(const PixelWand *wand)
Definition: pixel-wand.c:835
_PixelWand::debug
MagickBooleanType debug
Definition: pixel-wand.c:81
_PixelWand::name
char name[MaxTextExtent]
Definition: pixel-wand.c:69
PixelClearException
WandExport MagickBooleanType PixelClearException(PixelWand *)
PixelSetGreen
WandExport void PixelSetGreen(PixelWand *, const double)
_PixelWand::id
size_t id
Definition: pixel-wand.c:66
PixelGetMagentaQuantum
WandExport Quantum PixelGetMagentaQuantum(const PixelWand *wand)
Definition: pixel-wand.c:1147
PixelGetRed
WandExport double PixelGetRed(const PixelWand *wand)
Definition: pixel-wand.c:1323
PixelGetBlackQuantum
WandExport Quantum PixelGetBlackQuantum(const PixelWand *) magick_attribute((__pure__))
PixelSetMagentaQuantum
WandExport void PixelSetMagentaQuantum(PixelWand *wand, const Quantum magenta)
Definition: pixel-wand.c:2041
DestroyPixelWand
WandExport PixelWand * DestroyPixelWand(PixelWand *wand)
Definition: pixel-wand.c:230
PixelSetMagenta
WandExport void PixelSetMagenta(PixelWand *, const double)
PixelSetFuzz
WandExport void PixelSetFuzz(PixelWand *wand, const double fuzz)
Definition: pixel-wand.c:1829
PixelSetYellowQuantum
WandExport void PixelSetYellowQuantum(PixelWand *wand, const Quantum yellow)
Definition: pixel-wand.c:2317
PixelGetCyanQuantum
WandExport Quantum PixelGetCyanQuantum(const PixelWand *) magick_attribute((__pure__))
PixelGetRedQuantum
WandExport Quantum PixelGetRedQuantum(const PixelWand *wand)
Definition: pixel-wand.c:1354
IsPixelWandSimilar
WandExport MagickBooleanType IsPixelWandSimilar(PixelWand *, PixelWand *, const double)
_PixelWand::exception
ExceptionInfo * exception
Definition: pixel-wand.c:72
PixelGetBlueQuantum
WandExport Quantum PixelGetBlueQuantum(const PixelWand *wand)
Definition: pixel-wand.c:657
DestroyPixelWands
WandExport PixelWand ** DestroyPixelWands(PixelWand **wand, const size_t number_wands)
Definition: pixel-wand.c:269
PixelGetAlphaQuantum
WandExport Quantum PixelGetAlphaQuantum(const PixelWand *wand)
Definition: pixel-wand.c:533
PixelGetColorAsString
WandExport char * PixelGetColorAsString(const PixelWand *wand)
Definition: pixel-wand.c:688
PixelSetBlackQuantum
WandExport void PixelSetBlackQuantum(PixelWand *, const Quantum)
PixelGetYellow
WandExport double PixelGetYellow(const PixelWand *wand)
Definition: pixel-wand.c:1385
PixelSetGreenQuantum
WandExport void PixelSetGreenQuantum(PixelWand *wand, const Quantum green)
Definition: pixel-wand.c:1896
PixelGetGreenQuantum
WandExport Quantum PixelGetGreenQuantum(const PixelWand *) magick_attribute((__pure__))
NewPixelWand
WandExport PixelWand * NewPixelWand(void)
Definition: pixel-wand.c:382
PixelGetCyan
WandExport double PixelGetCyan(const PixelWand *) magick_attribute((__pure__))
ClonePixelWand
WandExport PixelWand * ClonePixelWand(const PixelWand *wand)
Definition: pixel-wand.c:142
PixelGetOpacity
WandExport double PixelGetOpacity(const PixelWand *wand)
Definition: pixel-wand.c:1213
ThrowWandFatalException
#define ThrowWandFatalException(severity, tag, context)
Definition: magick-wand-private.h:36
PixelSetColorCount
WandExport void PixelSetColorCount(PixelWand *wand, const size_t count)
Definition: pixel-wand.c:1695
ClonePixelWands
WandExport PixelWand ** ClonePixelWands(const PixelWand **, const size_t)
PixelGetRedQuantum
WandExport Quantum PixelGetRedQuantum(const PixelWand *) magick_attribute((__pure__))
WandSignature
#define WandSignature
Definition: method-attribute.h:76
PixelGetHSL
WandExport void PixelGetHSL(const PixelWand *wand, double *hue, double *saturation, double *lightness)
Definition: pixel-wand.c:1051
PixelGetMagickColor
WandExport void PixelGetMagickColor(const PixelWand *, MagickPixelPacket *)
PixelSetRed
WandExport void PixelSetRed(PixelWand *, const double)
PixelSetGreen
WandExport void PixelSetGreen(PixelWand *wand, const double green)
Definition: pixel-wand.c:1862
PixelGetBlue
WandExport double PixelGetBlue(const PixelWand *) magick_attribute((__pure__))
RelinquishWandId
WandExport void RelinquishWandId(const size_t id)
Definition: wand.c:150
PixelSetBlack
WandExport void PixelSetBlack(PixelWand *wand, const double black)
Definition: pixel-wand.c:1518
PixelGetQuantumColor
WandExport void PixelGetQuantumColor(const PixelWand *, PixelPacket *)
PixelSetCyan
WandExport void PixelSetCyan(PixelWand *, const double)
PixelSetYellow
WandExport void PixelSetYellow(PixelWand *wand, const double yellow)
Definition: pixel-wand.c:2283
PixelGetMagickColor
WandExport void PixelGetMagickColor(const PixelWand *wand, MagickPixelPacket *color)
Definition: pixel-wand.c:1180
PixelGetBlueQuantum
WandExport Quantum PixelGetBlueQuantum(const PixelWand *) magick_attribute((__pure__))
PixelGetColorAsNormalizedString
WandExport char * PixelGetColorAsNormalizedString(const PixelWand *)
PixelGetIndex
WandExport IndexPacket PixelGetIndex(const PixelWand *)
Definition: pixel-wand.c:1085
PixelGetGreenQuantum
WandExport Quantum PixelGetGreenQuantum(const PixelWand *wand)
Definition: pixel-wand.c:1016
PixelGetHSL
WandExport void PixelGetHSL(const PixelWand *, double *, double *, double *)
DestroyPixelWand
WandExport PixelWand * DestroyPixelWand(PixelWand *)
ClearPixelWand
WandExport void ClearPixelWand(PixelWand *)
PixelGetOpacityQuantum
WandExport Quantum PixelGetOpacityQuantum(const PixelWand *wand)
Definition: pixel-wand.c:1244
_PixelWand::count
size_t count
Definition: pixel-wand.c:78
PixelSetOpacity
WandExport void PixelSetOpacity(PixelWand *, const double)
PixelGetBlue
WandExport double PixelGetBlue(const PixelWand *wand)
Definition: pixel-wand.c:626
PixelSetBlueQuantum
WandExport void PixelSetBlueQuantum(PixelWand *wand, const Quantum blue)
Definition: pixel-wand.c:1619
PixelGetMagenta
WandExport double PixelGetMagenta(const PixelWand *wand)
Definition: pixel-wand.c:1116
PixelGetRed
WandExport double PixelGetRed(const PixelWand *) magick_attribute((__pure__))
PixelSetBlue
WandExport void PixelSetBlue(PixelWand *wand, const double blue)
Definition: pixel-wand.c:1585
studio.h
NewPixelWand
WandExport PixelWand * NewPixelWand(void)
PixelGetMagentaQuantum
WandExport Quantum PixelGetMagentaQuantum(const PixelWand *) magick_attribute((__pure__))
wand.h
PixelGetColorCount
WandExport size_t PixelGetColorCount(const PixelWand *) magick_attribute((__pure__))
Definition: pixel-wand.c:773
PixelSetColorFromWand
WandExport void PixelSetColorFromWand(PixelWand *, const PixelWand *)
PixelSetMagickColor
WandExport void PixelSetMagickColor(PixelWand *, const MagickPixelPacket *)
PixelSetQuantumColor
WandExport void PixelSetQuantumColor(PixelWand *, const PixelPacket *)
ClearPixelWand
WandExport void ClearPixelWand(PixelWand *wand)
Definition: pixel-wand.c:109
MagickWand.h
PixelGetGreen
WandExport double PixelGetGreen(const PixelWand *wand)
Definition: pixel-wand.c:985
PixelSetColorCount
WandExport void PixelSetColorCount(PixelWand *, const size_t)
ClonePixelWands
WandExport PixelWand ** ClonePixelWands(const PixelWand **wands, const size_t number_wands)
Definition: pixel-wand.c:192
IsPixelWandSimilar
WandExport MagickBooleanType IsPixelWandSimilar(PixelWand *p, PixelWand *q, const double fuzz)
Definition: pixel-wand.c:315
NewPixelWands
WandExport PixelWand ** NewPixelWands(const size_t number_wands)
Definition: pixel-wand.c:433
PixelGetException
WandExport char * PixelGetException(const PixelWand *, ExceptionType *)
Definition: pixel-wand.c:869
PixelGetBlack
WandExport double PixelGetBlack(const PixelWand *wand)
Definition: pixel-wand.c:564
pixel-wand-private.h
PixelSetHSL
WandExport void PixelSetHSL(PixelWand *wand, const double hue, const double saturation, const double lightness)
Definition: pixel-wand.c:1931
PixelSetAlpha
WandExport void PixelSetAlpha(PixelWand *, const double)
PixelGetAlpha
WandExport double PixelGetAlpha(const PixelWand *wand)
Definition: pixel-wand.c:502
PixelSetYellow
WandExport void PixelSetYellow(PixelWand *, const double)
MaxTextExtent
#define MaxTextExtent
Definition: method-attribute.h:78
_PixelWand::pixel
MagickPixelPacket pixel
Definition: pixel-wand.c:75
IsPixelWand
WandExport MagickBooleanType IsPixelWand(const PixelWand *)
PixelGetOpacityQuantum
WandExport Quantum PixelGetOpacityQuantum(const PixelWand *) magick_attribute((__pure__))
PixelSetColorFromWand
WandExport void PixelSetColorFromWand(PixelWand *wand, const PixelWand *color)
Definition: pixel-wand.c:1728
PixelSetMagenta
WandExport void PixelSetMagenta(PixelWand *wand, const double magenta)
Definition: pixel-wand.c:2006
PixelSetBlackQuantum
WandExport void PixelSetBlackQuantum(PixelWand *wand, const Quantum black)
Definition: pixel-wand.c:1552
PixelSetBlueQuantum
WandExport void PixelSetBlueQuantum(PixelWand *, const Quantum)
PixelGetAlphaQuantum
WandExport Quantum PixelGetAlphaQuantum(const PixelWand *) magick_attribute((__pure__))
PixelSetAlpha
WandExport void PixelSetAlpha(PixelWand *wand, const double alpha)
Definition: pixel-wand.c:1450
PixelClearException
WandExport MagickBooleanType PixelClearException(PixelWand *wand)
Definition: pixel-wand.c:470
PixelGetYellowQuantum
WandExport Quantum PixelGetYellowQuantum(const PixelWand *) magick_attribute((__pure__))
Definition: pixel-wand.c:1416
PixelGetFuzz
WandExport double PixelGetFuzz(const PixelWand *wand)
Definition: pixel-wand.c:954
PixelSetMagentaQuantum
WandExport void PixelSetMagentaQuantum(PixelWand *, const Quantum)
PixelWandId
#define PixelWandId
Definition: pixel-wand.c:58
PixelGetCyan
WandExport double PixelGetCyan(const PixelWand *wand)
Definition: pixel-wand.c:804
PixelSetOpacity
WandExport void PixelSetOpacity(PixelWand *wand, const double opacity)
Definition: pixel-wand.c:2109
PixelSetRedQuantum
WandExport void PixelSetRedQuantum(PixelWand *wand, const Quantum red)
Definition: pixel-wand.c:2250
PixelSetCyanQuantum
WandExport void PixelSetCyanQuantum(PixelWand *wand, const Quantum cyan)
Definition: pixel-wand.c:1796
DestroyPixelWands
WandExport PixelWand ** DestroyPixelWands(PixelWand **, const size_t)
PixelSetCyan
WandExport void PixelSetCyan(PixelWand *wand, const double cyan)
Definition: pixel-wand.c:1762
AcquireWandId
WandExport size_t AcquireWandId(void)
Definition: wand.c:74
WandExport
#define WandExport
Definition: method-attribute.h:71