2 Copyright 1999-2010 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 Application Programming Interface declarations.
19 #ifndef _MAGICK_WAND_H
20 #define _MAGICK_WAND_H
22 #if defined(__cplusplus) || defined(c_plusplus)
26 #if !defined(_MAGICKWAND_CONFIG_H)
27 # define _MAGICKWAND_CONFIG_H
28 # if !defined(vms) && !defined(macintosh)
29 # include "magick/magick-config.h"
31 # include "magick-config.h"
33 #if defined(_magickcore_const) && !defined(const)
34 # define const _magickcore_const
36 #if defined(_magickcore_inline) && !defined(inline)
37 # define inline _magickcore_inline
39 # if defined(__cplusplus) || defined(c_plusplus)
47 #include <sys/types.h>
49 #if defined(WIN32) || defined(WIN64)
50 # define MAGICKCORE_WINDOWS_SUPPORT
52 # define MAGICKCORE_POSIX_SUPPORT
55 #if defined(MAGICKCORE_WINDOWS_SUPPORT) && !defined(__CYGWIN__) && !defined(__MINGW32__)
56 # if defined(_MT) && defined(_DLL) && !defined(_MAGICKDLL_) && !defined(_LIB)
59 # if defined(_MAGICKDLL_)
60 # if defined(_VISUALC_)
61 # pragma warning( disable: 4273 ) /* Disable the dll linkage warnings */
63 # if !defined(_MAGICKLIB_)
64 # define WandExport __declspec(dllimport)
65 # if defined(_VISUALC_)
66 # pragma message( "MagickWand lib DLL import interface" )
69 # define WandExport __declspec(dllexport)
70 # if defined(_VISUALC_)
71 # pragma message( "MagickWand lib DLL export interface" )
76 # if defined(_VISUALC_)
77 # pragma message( "MagickWand lib static interface" )
81 # if defined(_DLL) && !defined(_LIB)
82 # define ModuleExport __declspec(dllexport)
83 # if defined(_VISUALC_)
84 # pragma message( "MagickWand module DLL export interface" )
88 # if defined(_VISUALC_)
89 # pragma message( "MagickWand module static interface" )
93 # define WandGlobal __declspec(thread)
94 # if defined(_VISUALC_)
95 # pragma warning(disable : 4018)
96 # pragma warning(disable : 4244)
97 # pragma warning(disable : 4142)
98 # pragma warning(disable : 4800)
99 # pragma warning(disable : 4786)
100 # pragma warning(disable : 4996)
104 # define ModuleExport
108 #if !defined(MaxTextExtent)
109 # define MaxTextExtent 4096
111 #define WandSignature 0xabacadabUL
113 #if !defined(wand_attribute)
114 # if !defined(__GNUC__)
115 # define wand_attribute(x) /* nothing */
117 # define wand_attribute __attribute__
121 typedef struct _MagickWand
124 #include "magick/MagickCore.h"
125 #include "wand/animate.h"
126 #include "wand/compare.h"
127 #include "wand/composite.h"
128 #include "wand/conjure.h"
129 #include "wand/convert.h"
130 #include "wand/deprecate.h"
131 #include "wand/display.h"
132 #include "wand/drawing-wand.h"
133 #include "wand/identify.h"
134 #include "wand/import.h"
135 #include "wand/magick-property.h"
136 #include "wand/magick-image.h"
137 #include "wand/mogrify.h"
138 #include "wand/montage.h"
139 #include "wand/pixel-iterator.h"
140 #include "wand/pixel-wand.h"
141 #include "wand/stream.h"
142 #include "wand/wand-view.h"
144 extern WandExport char
145 *MagickGetException(const MagickWand *,ExceptionType *);
147 extern WandExport ExceptionType
148 MagickGetExceptionType(const MagickWand *);
150 extern WandExport MagickBooleanType
151 IsMagickWand(const MagickWand *),
152 MagickClearException(MagickWand *),
153 MagickSetIteratorIndex(MagickWand *,const ssize_t);
155 extern WandExport MagickWand
156 *CloneMagickWand(const MagickWand *),
157 *DestroyMagickWand(MagickWand *),
158 *NewMagickWand(void),
159 *NewMagickWandFromImage(const Image *);
161 extern WandExport ssize_t
162 MagickGetIteratorIndex(MagickWand *);
164 extern WandExport void
165 ClearMagickWand(MagickWand *),
166 MagickWandGenesis(void),
167 MagickWandTerminus(void),
168 *MagickRelinquishMemory(void *),
169 MagickResetIterator(MagickWand *),
170 MagickSetFirstIterator(MagickWand *),
171 MagickSetLastIterator(MagickWand *);
173 #if defined(__cplusplus) || defined(c_plusplus)