MagickWand  6.9.12-43
Convert, Edit, Or Compose Bitmap Images
MagickWand.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 Application Programming Interface declarations.
17 */
18 
19 #ifndef _MAGICK_WAND_H
20 #define _MAGICK_WAND_H
21 
22 #if defined(__cplusplus) || defined(c_plusplus)
23 extern "C" {
24 #endif
25 
26 #if !defined(MAGICKWAND_CONFIG_H)
27 # define MAGICKWAND_CONFIG_H
28 # if !defined(vms) && !defined(macintosh)
29 # include "magick/magick-config.h"
30 # else
31 # include "magick-config.h"
32 # endif
33 #if defined(_magickcore_const) && !defined(const)
34 # define const _magickcore_const
35 #endif
36 #if defined(_magickcore_inline) && !defined(inline)
37 # define inline _magickcore_inline
38 #endif
39 #if !defined(magick_restrict)
40 # if !defined(_magickcore_restrict)
41 # define magick_restrict restrict
42 # else
43 # define magick_restrict _magickcore_restrict
44 # endif
45 #endif
46 # if defined(__cplusplus) || defined(c_plusplus)
47 # undef inline
48 # endif
49 #endif
50 
51 #define MAGICKWAND_CHECK_VERSION(major,minor,micro) \
52  ((MAGICKWAND_MAJOR_VERSION > (major)) || \
53  ((MAGICKWAND_MAJOR_VERSION == (major)) && \
54  (MAGICKWAND_MINOR_VERSION > (minor))) || \
55  ((MAGICKWAND_MAJOR_VERSION == (major)) && \
56  (MAGICKWAND_MINOR_VERSION == (minor)) && \
57  (MAGICKWAND_MICRO_VERSION >= (micro))))
58 
59 #include <stdio.h>
60 #include <stdarg.h>
61 #include <stdlib.h>
62 #include <stdint.h>
63 #include <math.h>
64 #include <sys/types.h>
65 #include <time.h>
66 
67 #if defined(WIN32) || defined(WIN64)
68 # define MAGICKWAND_WINDOWS_SUPPORT
69 #else
70 # define MAGICKWAND_POSIX_SUPPORT
71 #endif
72 
73 typedef struct _MagickWand
74  MagickWand;
75 
76 #include "wand/method-attribute.h"
77 #include "magick/MagickCore.h"
78 #include "wand/animate.h"
79 #include "wand/compare.h"
80 #include "wand/composite.h"
81 #include "wand/conjure.h"
82 #include "wand/convert.h"
83 #include "wand/deprecate.h"
84 #include "wand/display.h"
85 #include "wand/drawing-wand.h"
86 #include "wand/identify.h"
87 #include "wand/import.h"
88 #include "wand/magick-property.h"
89 #include "wand/magick-image.h"
90 #include "wand/mogrify.h"
91 #include "wand/montage.h"
92 #include "wand/pixel-iterator.h"
93 #include "wand/pixel-wand.h"
94 #include "wand/stream.h"
95 #include "wand/wand-view.h"
96 
97 extern WandExport char
98  *MagickGetException(const MagickWand *,ExceptionType *);
99 
100 extern WandExport ExceptionType
102 
103 extern WandExport MagickBooleanType
104  IsMagickWand(const MagickWand *),
107  MagickSetIteratorIndex(MagickWand *,const ssize_t);
108 
109 extern WandExport MagickWand
110  *CloneMagickWand(const MagickWand *),
112  *NewMagickWand(void),
113  *NewMagickWandFromImage(const Image *);
114 
115 extern WandExport ssize_t
117 
118 extern WandExport void
120  MagickWandGenesis(void),
121  MagickWandTerminus(void),
122  *MagickRelinquishMemory(void *),
126 
127 #if defined(__cplusplus) || defined(c_plusplus)
128 }
129 #endif
130 
131 #endif
WandExport void ClearMagickWand(MagickWand *wand)
Definition: magick-wand.c:77
WandExport void * MagickRelinquishMemory(void *memory)
Definition: magick-wand.c:790
MagickExport MagickBooleanType IsMagickWandInstantiated(void)
Definition: magick-wand.c:1144
#define WandExport
Definition: method-attribute.h:71
WandExport MagickWand * NewMagickWand(void)
Definition: magick-wand.c:1058
WandExport MagickBooleanType MagickSetIteratorIndex(MagickWand *wand, const ssize_t index)
Definition: magick-wand.c:924
WandExport void MagickSetLastIterator(MagickWand *wand)
Definition: magick-wand.c:978
Definition: magick-wand-private.h:50
WandExport void MagickWandTerminus(void)
Definition: magick-wand.c:1031
WandExport void MagickWandGenesis(void)
Definition: magick-wand.c:1007
WandExport void MagickResetIterator(MagickWand *wand)
Definition: magick-wand.c:828
WandExport MagickBooleanType IsMagickWand(const MagickWand *wand)
Definition: magick-wand.c:207
WandExport MagickWand * NewMagickWandFromImage(const Image *image)
Definition: magick-wand.c:1114
WandExport MagickWand * CloneMagickWand(const MagickWand *wand)
Definition: magick-wand.c:116
WandExport MagickWand * DestroyMagickWand(MagickWand *wand)
Definition: magick-wand.c:166
WandExport ssize_t MagickGetIteratorIndex(MagickWand *wand)
Definition: magick-wand.c:364
WandExport MagickBooleanType MagickClearException(MagickWand *wand)
Definition: magick-wand.c:240
WandExport ExceptionType MagickGetExceptionType(const MagickWand *wand)
Definition: magick-wand.c:332
WandExport void MagickSetFirstIterator(MagickWand *wand)
Definition: magick-wand.c:872
WandExport char * MagickGetException(const MagickWand *wand, ExceptionType *severity)
Definition: magick-wand.c:275