Magick++  7.0.7
Convert, Edit, Or Compose Bitmap Images
Include.h
Go to the documentation of this file.
1 // This may look like C code, but it is really -*- C++ -*-
2 //
3 // Copyright Bob Friesenhahn, 1999, 2000, 2001, 2002
4 // Copyright Dirk Lemstra 2013-2017
5 //
6 // Inclusion of ImageMagick headers (with namespace magic)
7 
8 #ifndef Magick_Include_header
9 #define Magick_Include_header
10 
11 #if !defined(_MAGICK_CONFIG_H)
12 # define _MAGICK_CONFIG_H
13 # if !defined(vms) && !defined(macintosh)
14 # include "MagickCore/magick-config.h"
15 # else
16 # include "magick-config.h"
17 # endif
18 # undef inline // Remove possible definition from config.h
19 # undef class
20 #endif
21 
22 // Needed for stdio FILE
23 #include <stdio.h>
24 #include <stdarg.h>
25 #include <stdlib.h>
26 #include <time.h>
27 #include <math.h>
28 #include <sys/types.h>
29 
30 #if defined(__BORLANDC__)
31 # include <vcl.h> /* Borland C++ Builder 4.0 requirement */
32 #endif // defined(__BORLANDC__)
33 
34 //
35 // Include ImageMagick headers into namespace "MagickCore". If
36 // MAGICKCORE_IMPLEMENTATION is defined, include ImageMagick development
37 // headers. This scheme minimizes the possibility of conflict with
38 // user code.
39 //
40 namespace MagickCore
41 {
42 #include <MagickCore/MagickCore.h>
43 #include <MagickWand/MagickWand.h>
44 #undef inline // Remove possible definition from config.h
45 
46 #undef class
47 }
48 
49 //
50 // Provide appropriate DLL imports/exports for Visual C++,
51 // Borland C++Builder and MinGW builds.
52 //
53 #if defined(WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)
54 # define MagickCplusPlusDLLSupported
55 #endif
56 #if defined(MagickCplusPlusDLLSupported)
57 # if defined(_MT) && defined(_DLL) && !defined(_LIB) && !defined(STATIC_MAGICK)
58 //
59 // In a native Windows build, the following defines are used:
60 //
61 // _MT = Multithreaded
62 // _DLL = Using code is part of a DLL
63 // _LIB = Using code is being built as a library.
64 // _MAGICKMOD_ = Build uses loadable modules (Magick++ does not care about this)
65 //
66 // In the case where ImageMagick is built as a static library but the
67 // using code is dynamic, STATIC_MAGICK may be defined in the project to
68 // override triggering dynamic library behavior.
69 //
70 # if defined(_VISUALC_)
71 # define MagickDLLExplicitTemplate
72 # pragma warning( disable: 4275 )
73 # pragma warning( disable: 4273 ) /* Disable the stupid dll linkage warnings */
74 # pragma warning( disable: 4251 )
75 # endif
76 # if !defined(MAGICKCORE_IMPLEMENTATION)
77 # if defined(__GNUC__)
78 # define MagickPPExport __attribute__ ((dllimport))
79 # else
80 # define MagickPPExport __declspec(dllimport)
81 # endif
82 # define MagickPPPrivate extern __declspec(dllimport)
83 # if defined(_VISUALC_)
84 # pragma message( "Magick++ lib DLL import" )
85 # endif
86 # else
87 # if defined(__BORLANDC__) || defined(__MINGW32__)
88 # define MagickPPExport __declspec(dllexport)
89 # define MagickPPPrivate __declspec(dllexport)
90 # if defined(__BORLANDC__)
91 # pragma message( "BCBMagick++ lib DLL export" )
92 # endif
93 # else
94 # if defined(__GNUC__)
95 # define MagickPPExport __attribute__ ((dllexport))
96 # else
97 # define MagickPPExport __declspec(dllexport)
98 # endif
99 # define MagickPPPrivate extern __declspec(dllexport)
100 # endif
101 # if defined(_VISUALC_)
102 # pragma message( "Magick++ lib DLL export" )
103 # endif
104 # endif
105 # else
106 # define MagickPPExport
107 # define MagickPPPrivate
108 # if defined(_VISUALC_)
109 # pragma message( "Magick++ lib static interface" )
110 # endif
111 # if defined(_MSC_VER) && defined(STATIC_MAGICK) && !defined(NOAUTOLINK_MAGICK)
112 # if defined(_DEBUG)
113 # if defined(MAGICKCORE_BZLIB_DELEGATE)
114 # pragma comment(lib, "CORE_DB_bzlib_.lib")
115 # endif
116 # pragma comment(lib, "CORE_DB_coders_.lib")
117 # if defined(MAGICKCORE_OPENEXR_DELEGATE)
118 # pragma comment(lib, "CORE_DB_exr_.lib")
119 # endif
120 # if defined(MAGICKCORE_LQR_DELEGATE)
121 # pragma comment(lib, "CORE_DB_ffi_.lib")
122 # endif
123 # pragma comment(lib, "CORE_DB_filters_.lib")
124 # if defined(MAGICKCORE_FLIF_DELEGATE)
125 # pragma comment(lib, "CORE_DB_flif_.lib")
126 # endif
127 # if defined(MAGICKCORE_LQR_DELEGATE)
128 # pragma comment(lib, "CORE_DB_glib_.lib")
129 # pragma comment(lib, "winmm.lib")
130 # endif
131 # if defined(MAGICKCORE_JBIG_DELEGATE)
132 # pragma comment(lib, "CORE_DB_jbig_.lib")
133 # endif
134 # if defined(MAGICKCORE_JP2_DELEGATE)
135 # pragma comment(lib, "CORE_DB_jp2_.lib")
136 # endif
137 # if defined(MAGICKCORE_JPEG_DELEGATE)
138 # pragma comment(lib, "CORE_DB_jpeg_.lib")
139 # endif
140 # if defined(MAGICKCORE_LCMS_DELEGATE)
141 # pragma comment(lib, "CORE_DB_lcms_.lib")
142 # endif
143 # if defined(MAGICKCORE_LIBOPENJP2_DELEGATE)
144 # pragma comment(lib, "CORE_DB_openjpeg_.lib")
145 # endif
146 # pragma comment(lib, "CORE_DB_libxml_.lib")
147 # if defined(MAGICKCORE_LQR_DELEGATE)
148 # pragma comment(lib, "CORE_DB_lqr_.lib")
149 # endif
150 # pragma comment(lib, "CORE_DB_Magick++_.lib")
151 # pragma comment(lib, "CORE_DB_MagickCore_.lib")
152 # pragma comment(lib, "CORE_DB_MagickWand_.lib")
153 # if defined(MAGICKCORE_PANGOCAIRO_DELEGATE)
154 # pragma comment(lib, "CORE_DB_cairo_.lib")
155 # pragma comment(lib, "CORE_DB_pango_.lib")
156 # pragma comment(lib, "CORE_DB_pixman_.lib")
157 # endif
158 # if defined(MAGICKCORE_PNG_DELEGATE)
159 # pragma comment(lib, "CORE_DB_png_.lib")
160 # endif
161 # if defined(MAGICKCORE_RAW_R_DELEGATE)
162 # pragma comment(lib, "CORE_DB_libraw_.lib")
163 # endif
164 # if defined(MAGICKCORE_RSVG_DELEGATE)
165 # pragma comment(lib, "CORE_DB_croco_.lib")
166 # pragma comment(lib, "CORE_DB_librsvg_.lib")
167 # endif
168 # if defined(MAGICKCORE_TIFF_DELEGATE)
169 # pragma comment(lib, "CORE_DB_tiff_.lib")
170 # endif
171 # if defined(MAGICKCORE_FREETYPE_DELEGATE)
172 # pragma comment(lib, "CORE_DB_ttf_.lib")
173 # endif
174 # if defined(MAGICKCORE_WEBP_DELEGATE)
175 # pragma comment(lib, "CORE_DB_webp_.lib")
176 # endif
177 # if defined(MAGICKCORE_X11_DELEGATE)
178 # pragma comment(lib, "CORE_DB_xlib_.lib")
179 # endif
180 # if defined(MAGICKCORE_ZLIB_DELEGATE)
181 # pragma comment(lib, "CORE_DB_zlib_.lib")
182 # endif
183 # else
184 # if defined(MAGICKCORE_BZLIB_DELEGATE)
185 # pragma comment(lib, "CORE_RL_bzlib_.lib")
186 # endif
187 # pragma comment(lib, "CORE_RL_coders_.lib")
188 # if defined(MAGICKCORE_OPENEXR_DELEGATE)
189 # pragma comment(lib, "CORE_RL_exr_.lib")
190 # endif
191 # if defined(MAGICKCORE_LQR_DELEGATE)
192 # pragma comment(lib, "CORE_RL_ffi_.lib")
193 # endif
194 # pragma comment(lib, "CORE_RL_filters_.lib")
195 # if defined(MAGICKCORE_FLIF_DELEGATE)
196 # pragma comment(lib, "CORE_RL_flif_.lib")
197 # endif
198 # if defined(MAGICKCORE_LQR_DELEGATE)
199 # pragma comment(lib, "CORE_RL_glib_.lib")
200 # pragma comment(lib, "winmm.lib")
201 # endif
202 # if defined(MAGICKCORE_JBIG_DELEGATE)
203 # pragma comment(lib, "CORE_RL_jbig_.lib")
204 # endif
205 # if defined(MAGICKCORE_JP2_DELEGATE)
206 # pragma comment(lib, "CORE_RL_jp2_.lib")
207 # endif
208 # if defined(MAGICKCORE_JPEG_DELEGATE)
209 # pragma comment(lib, "CORE_RL_jpeg_.lib")
210 # endif
211 # if defined(MAGICKCORE_LCMS_DELEGATE)
212 # pragma comment(lib, "CORE_RL_lcms_.lib")
213 # endif
214 # if defined(MAGICKCORE_LIBOPENJP2_DELEGATE)
215 # pragma comment(lib, "CORE_RL_openjpeg_.lib")
216 # endif
217 # pragma comment(lib, "CORE_RL_libxml_.lib")
218 # if defined(MAGICKCORE_LQR_DELEGATE)
219 # pragma comment(lib, "CORE_RL_lqr_.lib")
220 # endif
221 # pragma comment(lib, "CORE_RL_Magick++_.lib")
222 # pragma comment(lib, "CORE_RL_MagickCore_.lib")
223 # pragma comment(lib, "CORE_RL_MagickWand_.lib")
224 # if defined(MAGICKCORE_PANGOCAIRO_DELEGATE)
225 # pragma comment(lib, "CORE_RL_cairo_.lib")
226 # pragma comment(lib, "CORE_RL_pango_.lib")
227 # pragma comment(lib, "CORE_RL_pixman_.lib")
228 # endif
229 # if defined(MAGICKCORE_PNG_DELEGATE)
230 # pragma comment(lib, "CORE_RL_png_.lib")
231 # endif
232 # if defined(MAGICKCORE_RAW_R_DELEGATE)
233 # pragma comment(lib, "CORE_RL_libraw_.lib")
234 # endif
235 # if defined(MAGICKCORE_RSVG_DELEGATE)
236 # pragma comment(lib, "CORE_RL_croco_.lib")
237 # pragma comment(lib, "CORE_RL_librsvg_.lib")
238 # endif
239 # if defined(MAGICKCORE_TIFF_DELEGATE)
240 # pragma comment(lib, "CORE_RL_tiff_.lib")
241 # endif
242 # if defined(MAGICKCORE_FREETYPE_DELEGATE)
243 # pragma comment(lib, "CORE_RL_ttf_.lib")
244 # endif
245 # if defined(MAGICKCORE_WEBP_DELEGATE)
246 # pragma comment(lib, "CORE_RL_webp_.lib")
247 # endif
248 # if defined(MAGICKCORE_X11_DELEGATE)
249 # pragma comment(lib, "CORE_RL_xlib_.lib")
250 # endif
251 # if defined(MAGICKCORE_ZLIB_DELEGATE)
252 # pragma comment(lib, "CORE_RL_zlib_.lib")
253 # endif
254 # endif
255 # if defined(_WIN32_WCE)
256 # pragma comment(lib, "wsock32.lib")
257 # else
258 # pragma comment(lib, "ws2_32.lib")
259 # endif
260 # pragma comment(lib, "urlmon.lib")
261 # endif
262 # endif
263 #else
264 # if __GNUC__ >= 4
265 # define MagickPPExport __attribute__ ((visibility ("default")))
266 # define MagickPPPrivate __attribute__ ((visibility ("hidden")))
267 # else
268 # define MagickPPExport
269 # define MagickPPPrivate
270 # endif
271 #endif
272 
273 #if (defined(WIN32) || defined(WIN64)) && defined(_VISUALC_)
274 # pragma warning(disable : 4996) /* function deprecation warnings */
275 #endif
276 
277 //
278 // Import ImageMagick symbols and types which are used as part of the
279 // Magick++ API definition into namespace "Magick".
280 //
281 namespace Magick
282 {
283  // The datatype for an RGB component
284  using MagickCore::Quantum;
285  using MagickCore::MagickRealType;
286  using MagickCore::MagickSizeType;
287  using MagickCore::MagickStatusType;
288 
289  // Structures
290  using MagickCore::AffineMatrix;
291  using MagickCore::CacheView;
292  using MagickCore::CCObjectInfo;
293  using MagickCore::DrawInfo;
294  using MagickCore::DrawingWand;
295  using MagickCore::ExceptionInfo;
296  using MagickCore::FrameInfo;
297  using MagickCore::ImageInfo;
298  using MagickCore::KernelInfo;
299  using MagickCore::LinkedListInfo;
300  using MagickCore::MagickInfo;
301  using MagickCore::MagickWand;
302  using MagickCore::MontageInfo;
303  using MagickCore::OffsetInfo;
304  using MagickCore::PixelInfo;
305  using MagickCore::PixelWand;
306  using MagickCore::PointInfo;
307  using MagickCore::ProfileInfo;
308  using MagickCore::QuantizeInfo;
309  using MagickCore::QuantumInfo;
310  using MagickCore::RectangleInfo;
311  using MagickCore::StringInfo;
312 
313  // Alignment types.
314  using MagickCore::AlignType;
315  using MagickCore::UndefinedAlign;
316  using MagickCore::LeftAlign;
317  using MagickCore::CenterAlign;
318  using MagickCore::RightAlign;
319 
320  // Alpha channel options
321  using MagickCore::AlphaChannelOption;
322  using MagickCore::UndefinedAlphaChannel;
323  using MagickCore::ActivateAlphaChannel;
324  using MagickCore::AssociateAlphaChannel;
325  using MagickCore::BackgroundAlphaChannel;
326  using MagickCore::CopyAlphaChannel;
327  using MagickCore::DeactivateAlphaChannel;
328  using MagickCore::DiscreteAlphaChannel;
329  using MagickCore::DisassociateAlphaChannel;
330  using MagickCore::ExtractAlphaChannel;
331  using MagickCore::OffAlphaChannel;
332  using MagickCore::OnAlphaChannel;
333  using MagickCore::OpaqueAlphaChannel;
334  using MagickCore::RemoveAlphaChannel;
335  using MagickCore::SetAlphaChannel;
336  using MagickCore::ShapeAlphaChannel;
337  using MagickCore::TransparentAlphaChannel;
338 
339  // Auto threshold methods
340  using MagickCore::AutoThresholdMethod;
341  using MagickCore::UndefinedThresholdMethod;
342  using MagickCore::KapurThresholdMethod;
343  using MagickCore::OTSUThresholdMethod;
344  using MagickCore::TriangleThresholdMethod;
345 
346  // Channel types
347  using MagickCore::ChannelType;
348  using MagickCore::UndefinedChannel;
349  using MagickCore::RedChannel;
350  using MagickCore::GrayChannel;
351  using MagickCore::CyanChannel;
352  using MagickCore::GreenChannel;
353  using MagickCore::MagentaChannel;
354  using MagickCore::BlueChannel;
355  using MagickCore::YellowChannel;
356  using MagickCore::BlackChannel;
357  using MagickCore::AlphaChannel;
358  using MagickCore::OpacityChannel;
359  using MagickCore::IndexChannel;
360  using MagickCore::ReadMaskChannel;
361  using MagickCore::WriteMaskChannel;
362  using MagickCore::MetaChannel;
363  using MagickCore::CompositeChannels;
364  using MagickCore::AllChannels;
365  using MagickCore::TrueAlphaChannel;
366  using MagickCore::RGBChannels;
367  using MagickCore::GrayChannels;
368  using MagickCore::SyncChannels;
369  using MagickCore::DefaultChannels;
370 
371  // Image class types
372  using MagickCore::ClassType;
373  using MagickCore::UndefinedClass;
374  using MagickCore::DirectClass;
375  using MagickCore::PseudoClass;
376 
377  // Clip path units
378  using MagickCore::ClipPathUnits;
379  using MagickCore::UndefinedPathUnits;
380  using MagickCore::UserSpace;
381  using MagickCore::UserSpaceOnUse;
382  using MagickCore::ObjectBoundingBox;
383 
384  // Color-space types
385  using MagickCore::ColorspaceType;
386  using MagickCore::UndefinedColorspace;
387  using MagickCore::CMYColorspace;
388  using MagickCore::CMYKColorspace;
389  using MagickCore::GRAYColorspace;
390  using MagickCore::HCLColorspace;
391  using MagickCore::HCLpColorspace;
392  using MagickCore::HSBColorspace;
393  using MagickCore::HSIColorspace;
394  using MagickCore::HSLColorspace;
395  using MagickCore::HSVColorspace;
396  using MagickCore::HWBColorspace;
397  using MagickCore::LabColorspace;
398  using MagickCore::LCHColorspace;
399  using MagickCore::LCHabColorspace;
400  using MagickCore::LCHuvColorspace;
401  using MagickCore::LogColorspace;
402  using MagickCore::LMSColorspace;
403  using MagickCore::LuvColorspace;
404  using MagickCore::OHTAColorspace;
405  using MagickCore::Rec601YCbCrColorspace;
406  using MagickCore::Rec709YCbCrColorspace;
407  using MagickCore::RGBColorspace;
408  using MagickCore::scRGBColorspace;
409  using MagickCore::sRGBColorspace;
410  using MagickCore::TransparentColorspace;
411  using MagickCore::xyYColorspace;
412  using MagickCore::XYZColorspace;
413  using MagickCore::YCbCrColorspace;
414  using MagickCore::YCCColorspace;
415  using MagickCore::YDbDrColorspace;
416  using MagickCore::YIQColorspace;
417  using MagickCore::YPbPrColorspace;
418  using MagickCore::YUVColorspace;
419 
420  // Command options
421  using MagickCore::CommandOption;
422  using MagickCore::MagickDirectionOptions;
423  using MagickCore::MagickGravityOptions;
424  using MagickCore::MagickKernelOptions;
425  using MagickCore::MagickStyleOptions;
426 
427  // Compliance types
428  using MagickCore::ComplianceType;
429  using MagickCore::AllCompliance;
430 
431  // Composition operations
432  using MagickCore::CompositeOperator;
433  using MagickCore::AlphaCompositeOp;
434  using MagickCore::AtopCompositeOp;
435  using MagickCore::BlendCompositeOp;
436  using MagickCore::BlurCompositeOp;
437  using MagickCore::BumpmapCompositeOp;
438  using MagickCore::ChangeMaskCompositeOp;
439  using MagickCore::ClearCompositeOp;
440  using MagickCore::ColorBurnCompositeOp;
441  using MagickCore::ColorDodgeCompositeOp;
442  using MagickCore::ColorizeCompositeOp;
443  using MagickCore::CopyBlackCompositeOp;
444  using MagickCore::CopyBlueCompositeOp;
445  using MagickCore::CopyCompositeOp;
446  using MagickCore::CopyCyanCompositeOp;
447  using MagickCore::CopyGreenCompositeOp;
448  using MagickCore::CopyMagentaCompositeOp;
449  using MagickCore::CopyAlphaCompositeOp;
450  using MagickCore::CopyRedCompositeOp;
451  using MagickCore::CopyYellowCompositeOp;
452  using MagickCore::DarkenCompositeOp;
453  using MagickCore::DarkenIntensityCompositeOp;
454  using MagickCore::DifferenceCompositeOp;
455  using MagickCore::DisplaceCompositeOp;
456  using MagickCore::DissolveCompositeOp;
457  using MagickCore::DistortCompositeOp;
458  using MagickCore::DivideDstCompositeOp;
459  using MagickCore::DivideSrcCompositeOp;
460  using MagickCore::DstAtopCompositeOp;
461  using MagickCore::DstCompositeOp;
462  using MagickCore::DstInCompositeOp;
463  using MagickCore::DstOutCompositeOp;
464  using MagickCore::DstOverCompositeOp;
465  using MagickCore::ExclusionCompositeOp;
466  using MagickCore::HardLightCompositeOp;
467  using MagickCore::HardMixCompositeOp;
468  using MagickCore::HueCompositeOp;
469  using MagickCore::InCompositeOp;
470  using MagickCore::IntensityCompositeOp;
471  using MagickCore::LightenCompositeOp;
472  using MagickCore::LightenIntensityCompositeOp;
473  using MagickCore::LinearBurnCompositeOp;
474  using MagickCore::LinearDodgeCompositeOp;
475  using MagickCore::LinearLightCompositeOp;
476  using MagickCore::LuminizeCompositeOp;
477  using MagickCore::MathematicsCompositeOp;
478  using MagickCore::MinusDstCompositeOp;
479  using MagickCore::MinusSrcCompositeOp;
480  using MagickCore::ModulateCompositeOp;
481  using MagickCore::ModulusAddCompositeOp;
482  using MagickCore::ModulusSubtractCompositeOp;
483  using MagickCore::MultiplyCompositeOp;
484  using MagickCore::NoCompositeOp;
485  using MagickCore::OutCompositeOp;
486  using MagickCore::OverCompositeOp;
487  using MagickCore::OverlayCompositeOp;
488  using MagickCore::PegtopLightCompositeOp;
489  using MagickCore::PinLightCompositeOp;
490  using MagickCore::PlusCompositeOp;
491  using MagickCore::ReplaceCompositeOp;
492  using MagickCore::SaturateCompositeOp;
493  using MagickCore::ScreenCompositeOp;
494  using MagickCore::SoftLightCompositeOp;
495  using MagickCore::SrcAtopCompositeOp;
496  using MagickCore::SrcCompositeOp;
497  using MagickCore::SrcInCompositeOp;
498  using MagickCore::SrcOutCompositeOp;
499  using MagickCore::SrcOverCompositeOp;
500  using MagickCore::ThresholdCompositeOp;
501  using MagickCore::UndefinedCompositeOp;
502  using MagickCore::VividLightCompositeOp;
503  using MagickCore::XorCompositeOp;
504 
505  // Compression algorithms
506  using MagickCore::CompressionType;
507  using MagickCore::UndefinedCompression;
508  using MagickCore::B44ACompression;
509  using MagickCore::B44Compression;
510  using MagickCore::BZipCompression;
511  using MagickCore::DXT1Compression;
512  using MagickCore::DXT3Compression;
513  using MagickCore::DXT5Compression;
514  using MagickCore::FaxCompression;
515  using MagickCore::Group4Compression;
516  using MagickCore::JBIG1Compression;
517  using MagickCore::JBIG2Compression;
518  using MagickCore::JPEG2000Compression;
519  using MagickCore::JPEGCompression;
520  using MagickCore::LosslessJPEGCompression;
521  using MagickCore::LZMACompression;
522  using MagickCore::LZWCompression;
523  using MagickCore::NoCompression;
524  using MagickCore::PizCompression;
525  using MagickCore::Pxr24Compression;
526  using MagickCore::RLECompression;
527  using MagickCore::ZipCompression;
528  using MagickCore::ZipSCompression;
529 
530  // Decoration types
531  using MagickCore::DecorationType;
532  using MagickCore::UndefinedDecoration;
533  using MagickCore::NoDecoration;
534  using MagickCore::UnderlineDecoration;
535  using MagickCore::OverlineDecoration;
536  using MagickCore::LineThroughDecoration;
537 
538  // Direction types
539  using MagickCore::DirectionType;
540  using MagickCore::UndefinedDirection;
541  using MagickCore::RightToLeftDirection;
542  using MagickCore::LeftToRightDirection;
543 
544  // Dispose methods
545  using MagickCore::DisposeType;
546  using MagickCore::UndefinedDispose;
547  using MagickCore::NoneDispose;
548  using MagickCore::BackgroundDispose;
549  using MagickCore::PreviousDispose;
550 
551  // Distort methods
552  using MagickCore::DistortMethod;
553  using MagickCore::UndefinedDistortion;
554  using MagickCore::AffineDistortion;
555  using MagickCore::AffineProjectionDistortion;
556  using MagickCore::ScaleRotateTranslateDistortion;
557  using MagickCore::PerspectiveDistortion;
558  using MagickCore::PerspectiveProjectionDistortion;
559  using MagickCore::BilinearForwardDistortion;
560  using MagickCore::BilinearDistortion;
561  using MagickCore::BilinearReverseDistortion;
562  using MagickCore::PolynomialDistortion;
563  using MagickCore::ArcDistortion;
564  using MagickCore::PolarDistortion;
565  using MagickCore::DePolarDistortion;
566  using MagickCore::Cylinder2PlaneDistortion;
567  using MagickCore::Plane2CylinderDistortion;
568  using MagickCore::BarrelDistortion;
569  using MagickCore::BarrelInverseDistortion;
570  using MagickCore::ShepardsDistortion;
571  using MagickCore::ResizeDistortion;
572  using MagickCore::SentinelDistortion;
573 
574  // Dither methods
575  using MagickCore::DitherMethod;
576  using MagickCore::UndefinedDitherMethod;
577  using MagickCore::NoDitherMethod;
578  using MagickCore::RiemersmaDitherMethod;
579  using MagickCore::FloydSteinbergDitherMethod;
580 
581  // Endian options
582  using MagickCore::EndianType;
583  using MagickCore::UndefinedEndian;
584  using MagickCore::LSBEndian;
585  using MagickCore::MSBEndian;
586 
587  // Boolean types
588  using MagickCore::MagickBooleanType;
589  using MagickCore::MagickFalse;
590  using MagickCore::MagickTrue;
591 
592  // Evaluate options
593  using MagickCore::MagickEvaluateOperator;
594  using MagickCore::UndefinedEvaluateOperator;
595  using MagickCore::AbsEvaluateOperator;
596  using MagickCore::AddEvaluateOperator;
597  using MagickCore::AddModulusEvaluateOperator;
598  using MagickCore::AndEvaluateOperator;
599  using MagickCore::CosineEvaluateOperator;
600  using MagickCore::DivideEvaluateOperator;
601  using MagickCore::ExponentialEvaluateOperator;
602  using MagickCore::GaussianNoiseEvaluateOperator;
603  using MagickCore::ImpulseNoiseEvaluateOperator;
604  using MagickCore::LaplacianNoiseEvaluateOperator;
605  using MagickCore::LeftShiftEvaluateOperator;
606  using MagickCore::LogEvaluateOperator;
607  using MagickCore::MaxEvaluateOperator;
608  using MagickCore::MeanEvaluateOperator;
609  using MagickCore::MedianEvaluateOperator;
610  using MagickCore::MinEvaluateOperator;
611  using MagickCore::MultiplicativeNoiseEvaluateOperator;
612  using MagickCore::MultiplyEvaluateOperator;
613  using MagickCore::OrEvaluateOperator;
614  using MagickCore::PoissonNoiseEvaluateOperator;
615  using MagickCore::PowEvaluateOperator;
616  using MagickCore::RootMeanSquareEvaluateOperator;
617  using MagickCore::RightShiftEvaluateOperator;
618  using MagickCore::SetEvaluateOperator;
619  using MagickCore::SineEvaluateOperator;
620  using MagickCore::SubtractEvaluateOperator;
621  using MagickCore::SumEvaluateOperator;
622  using MagickCore::ThresholdBlackEvaluateOperator;
623  using MagickCore::ThresholdEvaluateOperator;
624  using MagickCore::ThresholdWhiteEvaluateOperator;
625  using MagickCore::UniformNoiseEvaluateOperator;
626  using MagickCore::XorEvaluateOperator;
627 
628  // Fill rules
629  using MagickCore::FillRule;
630  using MagickCore::UndefinedRule;
631  using MagickCore::EvenOddRule;
632  using MagickCore::NonZeroRule;
633 
634  // Filter types
635  using MagickCore::FilterType;
636  using MagickCore::UndefinedFilter;
637  using MagickCore::PointFilter;
638  using MagickCore::BoxFilter;
639  using MagickCore::TriangleFilter;
640  using MagickCore::HermiteFilter;
641  using MagickCore::HannFilter;
642  using MagickCore::HammingFilter;
643  using MagickCore::BlackmanFilter;
644  using MagickCore::GaussianFilter;
645  using MagickCore::QuadraticFilter;
646  using MagickCore::CubicFilter;
647  using MagickCore::CatromFilter;
648  using MagickCore::MitchellFilter;
649  using MagickCore::JincFilter;
650  using MagickCore::SincFilter;
651  using MagickCore::SincFastFilter;
652  using MagickCore::KaiserFilter;
653  using MagickCore::WelchFilter;
654  using MagickCore::ParzenFilter;
655  using MagickCore::BohmanFilter;
656  using MagickCore::BartlettFilter;
657  using MagickCore::LagrangeFilter;
658  using MagickCore::LanczosFilter;
659  using MagickCore::LanczosSharpFilter;
660  using MagickCore::Lanczos2Filter;
661  using MagickCore::Lanczos2SharpFilter;
662  using MagickCore::RobidouxFilter;
663  using MagickCore::RobidouxSharpFilter;
664  using MagickCore::CosineFilter;
665  using MagickCore::SplineFilter;
666  using MagickCore::LanczosRadiusFilter;
667  using MagickCore::SentinelFilter;
668 
669  // Geometry flags;
670  using MagickCore::GeometryFlags;
671  using MagickCore::AreaValue;
672  using MagickCore::AspectValue;
673  using MagickCore::GreaterValue;
674  using MagickCore::HeightValue;
675  using MagickCore::LessValue;
676  using MagickCore::MinimumValue;
677  using MagickCore::NoValue;
678  using MagickCore::PercentValue;
679  using MagickCore::WidthValue;
680  using MagickCore::XNegative;
681  using MagickCore::XValue;
682  using MagickCore::YNegative;
683  using MagickCore::YValue;
684 
685  // Bit gravity
686  using MagickCore::GravityType;
687  using MagickCore::UndefinedGravity;
688  using MagickCore::ForgetGravity;
689  using MagickCore::NorthWestGravity;
690  using MagickCore::NorthGravity;
691  using MagickCore::NorthEastGravity;
692  using MagickCore::WestGravity;
693  using MagickCore::CenterGravity;
694  using MagickCore::EastGravity;
695  using MagickCore::SouthWestGravity;
696  using MagickCore::SouthGravity;
697  using MagickCore::SouthEastGravity;
698 
699  // Image types
700  using MagickCore::ImageType;
701  using MagickCore::UndefinedType;
702  using MagickCore::BilevelType;
703  using MagickCore::GrayscaleType;
704  using MagickCore::GrayscaleAlphaType;
705  using MagickCore::PaletteType;
706  using MagickCore::PaletteAlphaType;
707  using MagickCore::TrueColorType;
708  using MagickCore::TrueColorAlphaType;
709  using MagickCore::ColorSeparationType;
710  using MagickCore::ColorSeparationAlphaType;
711  using MagickCore::OptimizeType;
712  using MagickCore::PaletteBilevelAlphaType;
713 
714  // Interlace types
715  using MagickCore::InterlaceType;
716  using MagickCore::UndefinedInterlace;
717  using MagickCore::NoInterlace;
718  using MagickCore::LineInterlace;
719  using MagickCore::PlaneInterlace;
720  using MagickCore::PartitionInterlace;
721  using MagickCore::GIFInterlace;
722  using MagickCore::JPEGInterlace;
723  using MagickCore::PNGInterlace;
724 
725  // Built-in kernels
726  using MagickCore::KernelInfoType;
727  using MagickCore::UndefinedKernel;
728  using MagickCore::UnityKernel;
729  using MagickCore::GaussianKernel;
730  using MagickCore::DoGKernel;
731  using MagickCore::LoGKernel;
732  using MagickCore::BlurKernel;
733  using MagickCore::CometKernel;
734  using MagickCore::BinomialKernel;
735  using MagickCore::LaplacianKernel;
736  using MagickCore::SobelKernel;
737  using MagickCore::FreiChenKernel;
738  using MagickCore::RobertsKernel;
739  using MagickCore::PrewittKernel;
740  using MagickCore::CompassKernel;
741  using MagickCore::KirschKernel;
742  using MagickCore::DiamondKernel;
743  using MagickCore::SquareKernel;
744  using MagickCore::RectangleKernel;
745  using MagickCore::OctagonKernel;
746  using MagickCore::DiskKernel;
747  using MagickCore::PlusKernel;
748  using MagickCore::CrossKernel;
749  using MagickCore::RingKernel;
750  using MagickCore::PeaksKernel;
751  using MagickCore::EdgesKernel;
752  using MagickCore::CornersKernel;
753  using MagickCore::DiagonalsKernel;
754  using MagickCore::LineEndsKernel;
755  using MagickCore::LineJunctionsKernel;
756  using MagickCore::RidgesKernel;
757  using MagickCore::ConvexHullKernel;
758  using MagickCore::ThinSEKernel;
759  using MagickCore::SkeletonKernel;
760  using MagickCore::ChebyshevKernel;
761  using MagickCore::ManhattanKernel;
762  using MagickCore::OctagonalKernel;
763  using MagickCore::EuclideanKernel;
764  using MagickCore::UserDefinedKernel;
765 
766  // Layer method
767  using MagickCore::LayerMethod;
768  using MagickCore::UndefinedLayer;
769  using MagickCore::CoalesceLayer;
770  using MagickCore::CompareAnyLayer;
771  using MagickCore::CompareClearLayer;
772  using MagickCore::CompareOverlayLayer;
773  using MagickCore::DisposeLayer;
774  using MagickCore::OptimizeLayer;
775  using MagickCore::OptimizeImageLayer;
776  using MagickCore::OptimizePlusLayer;
777  using MagickCore::OptimizeTransLayer;
778  using MagickCore::RemoveDupsLayer;
779  using MagickCore::RemoveZeroLayer;
780  using MagickCore::CompositeLayer;
781  using MagickCore::MergeLayer;
782  using MagickCore::FlattenLayer;
783  using MagickCore::MosaicLayer;
784  using MagickCore::TrimBoundsLayer;
785 
786  // Line cap types
787  using MagickCore::LineCap;
788  using MagickCore::UndefinedCap;
789  using MagickCore::ButtCap;
790  using MagickCore::RoundCap;
791  using MagickCore::SquareCap;
792 
793  // Line join types
794  using MagickCore::LineJoin;
795  using MagickCore::UndefinedJoin;
796  using MagickCore::MiterJoin;
797  using MagickCore::RoundJoin;
798  using MagickCore::BevelJoin;
799 
800  // Log event types
801  using MagickCore::LogEventType;
802  using MagickCore::UndefinedEvents;
803  using MagickCore::NoEvents;
804  using MagickCore::AccelerateEvent;
805  using MagickCore::AnnotateEvent;
806  using MagickCore::BlobEvent;
807  using MagickCore::CacheEvent;
808  using MagickCore::CoderEvent;
809  using MagickCore::ConfigureEvent;
810  using MagickCore::DeprecateEvent;
811  using MagickCore::DrawEvent;
812  using MagickCore::ExceptionEvent;
813  using MagickCore::ImageEvent;
814  using MagickCore::LocaleEvent;
815  using MagickCore::ModuleEvent;
816  using MagickCore::PixelEvent;
817  using MagickCore::PolicyEvent;
818  using MagickCore::ResourceEvent;
819  using MagickCore::TraceEvent;
820  using MagickCore::TransformEvent;
821  using MagickCore::UserEvent;
822  using MagickCore::WandEvent;
823  using MagickCore::X11Event;
824  using MagickCore::CommandEvent;
825  using MagickCore::AllEvents;
826 
827  // Magick functions
828  using MagickCore::MagickFunction;
829  using MagickCore::UndefinedFunction;
830  using MagickCore::ArcsinFunction;
831  using MagickCore::ArctanFunction;
832  using MagickCore::PolynomialFunction;
833  using MagickCore::SinusoidFunction;
834 
835  // Metric types
836  using MagickCore::MetricType;
837  using MagickCore::UndefinedErrorMetric;
838  using MagickCore::AbsoluteErrorMetric;
839  using MagickCore::FuzzErrorMetric;
840  using MagickCore::MeanAbsoluteErrorMetric;
841  using MagickCore::MeanErrorPerPixelErrorMetric;
842  using MagickCore::MeanSquaredErrorMetric;
843  using MagickCore::NormalizedCrossCorrelationErrorMetric;
844  using MagickCore::PeakAbsoluteErrorMetric;
845  using MagickCore::PeakSignalToNoiseRatioErrorMetric;
846  using MagickCore::PerceptualHashErrorMetric;
847  using MagickCore::RootMeanSquaredErrorMetric;
848 
849  // Morphology methods
850  using MagickCore::MorphologyMethod;
851  using MagickCore::UndefinedMorphology;
852  using MagickCore::ConvolveMorphology;
853  using MagickCore::CorrelateMorphology;
854  using MagickCore::ErodeMorphology;
855  using MagickCore::DilateMorphology;
856  using MagickCore::ErodeIntensityMorphology;
857  using MagickCore::DilateIntensityMorphology;
858  using MagickCore::IterativeDistanceMorphology;
859  using MagickCore::OpenMorphology;
860  using MagickCore::CloseMorphology;
861  using MagickCore::OpenIntensityMorphology;
862  using MagickCore::CloseIntensityMorphology;
863  using MagickCore::SmoothMorphology;
864  using MagickCore::EdgeInMorphology;
865  using MagickCore::EdgeOutMorphology;
866  using MagickCore::EdgeMorphology;
867  using MagickCore::TopHatMorphology;
868  using MagickCore::BottomHatMorphology;
869  using MagickCore::HitAndMissMorphology;
870  using MagickCore::ThinningMorphology;
871  using MagickCore::ThickenMorphology;
872  using MagickCore::DistanceMorphology;
873  using MagickCore::VoronoiMorphology;
874 
875  // Noise types
876  using MagickCore::NoiseType;
877  using MagickCore::UndefinedNoise;
878  using MagickCore::UniformNoise;
879  using MagickCore::GaussianNoise;
880  using MagickCore::MultiplicativeGaussianNoise;
881  using MagickCore::ImpulseNoise;
882  using MagickCore::LaplacianNoise;
883  using MagickCore::PoissonNoise;
884 
885  // Orientation types
886  using MagickCore::OrientationType;
887  using MagickCore::UndefinedOrientation;
888  using MagickCore::TopLeftOrientation;
889  using MagickCore::TopRightOrientation;
890  using MagickCore::BottomRightOrientation;
891  using MagickCore::BottomLeftOrientation;
892  using MagickCore::LeftTopOrientation;
893  using MagickCore::RightTopOrientation;
894  using MagickCore::RightBottomOrientation;
895  using MagickCore::LeftBottomOrientation;
896 
897  // Paint methods
898  using MagickCore::PaintMethod;
899  using MagickCore::UndefinedMethod;
900  using MagickCore::PointMethod;
901  using MagickCore::ReplaceMethod;
902  using MagickCore::FloodfillMethod;
903  using MagickCore::FillToBorderMethod;
904  using MagickCore::ResetMethod;
905 
906  using MagickCore::PixelChannel;
907  using MagickCore::UndefinedPixelChannel;
908  using MagickCore::RedPixelChannel;
909  using MagickCore::CyanPixelChannel;
910  using MagickCore::GrayPixelChannel;
911  using MagickCore::LPixelChannel;
912  using MagickCore::YPixelChannel;
913  using MagickCore::aPixelChannel;
914  using MagickCore::GreenPixelChannel;
915  using MagickCore::MagentaPixelChannel;
916  using MagickCore::CbPixelChannel;
917  using MagickCore::bPixelChannel;
918  using MagickCore::BluePixelChannel;
919  using MagickCore::YellowPixelChannel;
920  using MagickCore::CrPixelChannel;
921  using MagickCore::BlackPixelChannel;
922  using MagickCore::AlphaPixelChannel;
923  using MagickCore::IndexPixelChannel;
924  using MagickCore::ReadMaskPixelChannel;
925  using MagickCore::WriteMaskPixelChannel;
926  using MagickCore::MetaPixelChannel;
927  using MagickCore::IntensityPixelChannel;
928  using MagickCore::CompositePixelChannel;
929  using MagickCore::SyncPixelChannel;
930 
931  // Pixel intensity method
932  using MagickCore::PixelIntensityMethod;
933  using MagickCore::UndefinedPixelIntensityMethod;
934  using MagickCore::AveragePixelIntensityMethod;
935  using MagickCore::BrightnessPixelIntensityMethod;
936  using MagickCore::LightnessPixelIntensityMethod;
937  using MagickCore::MSPixelIntensityMethod;
938  using MagickCore::Rec601LumaPixelIntensityMethod;
939  using MagickCore::Rec601LuminancePixelIntensityMethod;
940  using MagickCore::Rec709LumaPixelIntensityMethod;
941  using MagickCore::Rec709LuminancePixelIntensityMethod;
942  using MagickCore::RMSPixelIntensityMethod;
943 
944  // PixelInterpolate methods
945  using MagickCore::PixelInterpolateMethod;
946  using MagickCore::UndefinedInterpolatePixel;
947  using MagickCore::AverageInterpolatePixel;
948  using MagickCore::Average9InterpolatePixel;
949  using MagickCore::Average16InterpolatePixel;
950  using MagickCore::BackgroundInterpolatePixel;
951  using MagickCore::BilinearInterpolatePixel;
952  using MagickCore::BlendInterpolatePixel;
953  using MagickCore::CatromInterpolatePixel;
954  using MagickCore::IntegerInterpolatePixel;
955  using MagickCore::MeshInterpolatePixel;
956  using MagickCore::NearestInterpolatePixel;
957  using MagickCore::SplineInterpolatePixel;
958 
959  // Pixel traits
960  using MagickCore::PixelTrait;
961  using MagickCore::UndefinedPixelTrait;
962  using MagickCore::CopyPixelTrait;
963  using MagickCore::UpdatePixelTrait;
964  using MagickCore::BlendPixelTrait;
965 
966  // Preview types. Not currently used by Magick++
967  using MagickCore::PreviewType;
968  using MagickCore::UndefinedPreview;
969  using MagickCore::RotatePreview;
970  using MagickCore::ShearPreview;
971  using MagickCore::RollPreview;
972  using MagickCore::HuePreview;
973  using MagickCore::SaturationPreview;
974  using MagickCore::BrightnessPreview;
975  using MagickCore::GammaPreview;
976  using MagickCore::SpiffPreview;
977  using MagickCore::DullPreview;
978  using MagickCore::GrayscalePreview;
979  using MagickCore::QuantizePreview;
980  using MagickCore::DespecklePreview;
981  using MagickCore::ReduceNoisePreview;
982  using MagickCore::AddNoisePreview;
983  using MagickCore::SharpenPreview;
984  using MagickCore::BlurPreview;
985  using MagickCore::ThresholdPreview;
986  using MagickCore::EdgeDetectPreview;
987  using MagickCore::SpreadPreview;
988  using MagickCore::SolarizePreview;
989  using MagickCore::ShadePreview;
990  using MagickCore::RaisePreview;
991  using MagickCore::SegmentPreview;
992  using MagickCore::SwirlPreview;
993  using MagickCore::ImplodePreview;
994  using MagickCore::WavePreview;
995  using MagickCore::OilPaintPreview;
996  using MagickCore::CharcoalDrawingPreview;
997  using MagickCore::JPEGPreview;
998 
999  // Quantum types
1000  using MagickCore::QuantumType;
1001  using MagickCore::IndexQuantum;
1002  using MagickCore::GrayQuantum;
1003  using MagickCore::IndexAlphaQuantum;
1004  using MagickCore::GrayAlphaQuantum;
1005  using MagickCore::RedQuantum;
1006  using MagickCore::CyanQuantum;
1007  using MagickCore::GreenQuantum;
1008  using MagickCore::YellowQuantum;
1009  using MagickCore::BlueQuantum;
1010  using MagickCore::MagentaQuantum;
1011  using MagickCore::AlphaQuantum;
1012  using MagickCore::BlackQuantum;
1013  using MagickCore::RGBQuantum;
1014  using MagickCore::RGBAQuantum;
1015  using MagickCore::CMYKQuantum;
1016 
1017  // Pixel mask types
1018  using MagickCore::PixelMask;
1019  using MagickCore::UndefinedPixelMask;
1020  using MagickCore::ReadPixelMask;
1021  using MagickCore::WritePixelMask;
1022 
1023  // Rendering intents
1024  using MagickCore::RenderingIntent;
1025  using MagickCore::UndefinedIntent;
1026  using MagickCore::SaturationIntent;
1027  using MagickCore::PerceptualIntent;
1028  using MagickCore::AbsoluteIntent;
1029  using MagickCore::RelativeIntent;
1030 
1031  // Resource types
1032  using MagickCore::ResourceType;
1033  using MagickCore::UndefinedResource;
1034  using MagickCore::AreaResource;
1035  using MagickCore::DiskResource;
1036  using MagickCore::FileResource;
1037  using MagickCore::HeightResource;
1038  using MagickCore::MapResource;
1039  using MagickCore::MemoryResource;
1040  using MagickCore::ThreadResource;
1041  using MagickCore::ThrottleResource;
1042  using MagickCore::TimeResource;
1043  using MagickCore::WidthResource;
1044 
1045  // Resolution units
1046  using MagickCore::ResolutionType;
1047  using MagickCore::UndefinedResolution;
1048  using MagickCore::PixelsPerInchResolution;
1049  using MagickCore::PixelsPerCentimeterResolution;
1050 
1051  // Sparse Color methods
1052  using MagickCore::SparseColorMethod;
1053  using MagickCore::UndefinedColorInterpolate;
1054  using MagickCore::BarycentricColorInterpolate;
1055  using MagickCore::BilinearColorInterpolate;
1056  using MagickCore::PolynomialColorInterpolate;
1057  using MagickCore::ShepardsColorInterpolate;
1058  using MagickCore::VoronoiColorInterpolate;
1059  using MagickCore::InverseColorInterpolate;
1060  using MagickCore::ManhattanColorInterpolate;
1061 
1062  // Statistic type
1063  using MagickCore::StatisticType;
1064  using MagickCore::UndefinedStatistic;
1065  using MagickCore::GradientStatistic;
1066  using MagickCore::MaximumStatistic;
1067  using MagickCore::MeanStatistic;
1068  using MagickCore::MedianStatistic;
1069  using MagickCore::MinimumStatistic;
1070  using MagickCore::ModeStatistic;
1071  using MagickCore::NonpeakStatistic;
1072  using MagickCore::RootMeanSquareStatistic;
1073  using MagickCore::StandardDeviationStatistic;
1074 
1075  // StorageType type
1076  using MagickCore::StorageType;
1077  using MagickCore::UndefinedPixel;
1078  using MagickCore::CharPixel;
1079  using MagickCore::DoublePixel;
1080  using MagickCore::FloatPixel;
1081  using MagickCore::LongPixel;
1082  using MagickCore::LongLongPixel;
1083  using MagickCore::QuantumPixel;
1084  using MagickCore::ShortPixel;
1085 
1086  // StretchType type
1087  using MagickCore::StretchType;
1088  using MagickCore::UndefinedStretch;
1089  using MagickCore::NormalStretch;
1090  using MagickCore::UltraCondensedStretch;
1091  using MagickCore::ExtraCondensedStretch;
1092  using MagickCore::CondensedStretch;
1093  using MagickCore::SemiCondensedStretch;
1094  using MagickCore::SemiExpandedStretch;
1095  using MagickCore::ExpandedStretch;
1096  using MagickCore::ExtraExpandedStretch;
1097  using MagickCore::UltraExpandedStretch;
1098  using MagickCore::AnyStretch;
1099 
1100  // StyleType type
1101  using MagickCore::StyleType;
1102  using MagickCore::UndefinedStyle;
1103  using MagickCore::NormalStyle;
1104  using MagickCore::ItalicStyle;
1105  using MagickCore::ObliqueStyle;
1106  using MagickCore::AnyStyle;
1107 
1108  // Virtual pixel methods
1109  using MagickCore::VirtualPixelMethod;
1110  using MagickCore::UndefinedVirtualPixelMethod;
1111  using MagickCore::BackgroundVirtualPixelMethod;
1112  using MagickCore::DitherVirtualPixelMethod;
1113  using MagickCore::EdgeVirtualPixelMethod;
1114  using MagickCore::MirrorVirtualPixelMethod;
1115  using MagickCore::RandomVirtualPixelMethod;
1116  using MagickCore::TileVirtualPixelMethod;
1117  using MagickCore::TransparentVirtualPixelMethod;
1118  using MagickCore::MaskVirtualPixelMethod;
1119  using MagickCore::BlackVirtualPixelMethod;
1120  using MagickCore::GrayVirtualPixelMethod;
1121  using MagickCore::WhiteVirtualPixelMethod;
1122  using MagickCore::HorizontalTileVirtualPixelMethod;
1123  using MagickCore::VerticalTileVirtualPixelMethod;
1124  using MagickCore::HorizontalTileEdgeVirtualPixelMethod;
1125  using MagickCore::VerticalTileEdgeVirtualPixelMethod;
1126  using MagickCore::CheckerTileVirtualPixelMethod;
1127 
1128 #if defined(MAGICKCORE_IMPLEMENTATION)
1129  //
1130  // ImageMagick symbols used in implementation code
1131  //
1132  using MagickCore::AcquireAlignedMemory;
1133  using MagickCore::AcquireAuthenticCacheView;
1134  using MagickCore::AcquireDrawingWand;
1135  using MagickCore::AcquireExceptionInfo;
1136  using MagickCore::AcquireVirtualCacheView;
1137  using MagickCore::AcquireImage;
1138  using MagickCore::AcquireKernelInfo;
1139  using MagickCore::AcquireMagickInfo;
1140  using MagickCore::AcquireMagickMemory;
1141  using MagickCore::AcquireQuantumInfo;
1142  using MagickCore::AcquireString;
1143  using MagickCore::AcquireStringInfo;
1144  using MagickCore::AdaptiveBlurImage;
1145  using MagickCore::AdaptiveResizeImage;
1146  using MagickCore::AdaptiveSharpenImage;
1147  using MagickCore::AdaptiveThresholdImage;
1148  using MagickCore::AddNoiseImage;
1149  using MagickCore::AffineTransformImage;
1150  using MagickCore::AnnotateImage;
1151  using MagickCore::AutoGammaImage;
1152  using MagickCore::AutoLevelImage;
1153  using MagickCore::AutoOrientImage;
1154  using MagickCore::AutoThresholdImage;
1155  using MagickCore::Base64Decode;
1156  using MagickCore::Base64Encode;
1157  using MagickCore::BilevelImage;
1158  using MagickCore::BlackThresholdImage;
1159  using MagickCore::BlobToImage;
1160  using MagickCore::BlueShiftImage;
1161  using MagickCore::BlurImage;
1162  using MagickCore::BrightnessContrastImage;
1163  using MagickCore::BorderImage;
1164  using MagickCore::CharcoalImage;
1165  using MagickCore::CannyEdgeImage;
1166  using MagickCore::ChopImage;
1167  using MagickCore::ClampImage;
1168  using MagickCore::ClampToQuantum;
1169  using MagickCore::ClearMagickException;
1170  using MagickCore::CloneDrawInfo;
1171  using MagickCore::CloneImage;
1172  using MagickCore::CloneImageInfo;
1173  using MagickCore::CloneQuantizeInfo;
1174  using MagickCore::ClutImage;
1175  using MagickCore::ColorDecisionListImage;
1176  using MagickCore::ColorizeImage;
1177  using MagickCore::ColorMatrixImage;
1178  using MagickCore::CommandOptionToMnemonic;
1179  using MagickCore::CompareImages;
1180  using MagickCore::CompareImagesLayers;
1181  using MagickCore::CompositeImage;
1182  using MagickCore::ConnectedComponentsImage;
1183  using MagickCore::ConstituteImage;
1184  using MagickCore::ContrastImage;
1185  using MagickCore::ContrastStretchImage;
1186  using MagickCore::ConvertHSLToRGB;
1187  using MagickCore::ConvertRGBToHSL;
1188  using MagickCore::ConvolveImage;
1189  using MagickCore::CopyImagePixels;
1190  using MagickCore::CopyMagickString;
1191  using MagickCore::CropImage;
1192  using MagickCore::CropImageToTiles;
1193  using MagickCore::CycleColormapImage;
1194  using MagickCore::DecipherImage;
1195  using MagickCore::DeleteImageOption;
1196  using MagickCore::DeleteImageRegistry;
1197  using MagickCore::DeskewImage;
1198  using MagickCore::DespeckleImage;
1199  using MagickCore::DestroyCacheView;
1200  using MagickCore::DestroyDrawInfo;
1201  using MagickCore::DestroyDrawingWand;
1202  using MagickCore::DestroyExceptionInfo;
1203  using MagickCore::DestroyImageInfo;
1204  using MagickCore::DestroyImageList;
1205  using MagickCore::DestroyKernelInfo;
1206  using MagickCore::DestroyMagickWand;
1207  using MagickCore::DestroyPixelWand;
1208  using MagickCore::DestroyQuantizeInfo;
1209  using MagickCore::DestroyQuantumInfo;
1210  using MagickCore::DestroyString;
1211  using MagickCore::DestroyStringInfo;
1212  using MagickCore::DisplayImages;
1213  using MagickCore::DistortImage;
1214  using MagickCore::DrawAffine;
1215  using MagickCore::DrawAlpha;
1216  using MagickCore::DrawAnnotation;
1217  using MagickCore::DrawArc;
1218  using MagickCore::DrawBezier;
1219  using MagickCore::DrawCircle;
1220  using MagickCore::DrawColor;
1221  using MagickCore::DrawComment;
1222  using MagickCore::DrawComposite;
1223  using MagickCore::DrawEllipse;
1224  using MagickCore::DrawImage;
1225  using MagickCore::DrawLine;
1226  using MagickCore::DrawPathClose;
1227  using MagickCore::DrawPathCurveToAbsolute;
1228  using MagickCore::DrawPathCurveToQuadraticBezierAbsolute;
1229  using MagickCore::DrawPathCurveToQuadraticBezierRelative;
1230  using MagickCore::DrawPathCurveToQuadraticBezierSmoothAbsolute;
1231  using MagickCore::DrawPathCurveToQuadraticBezierSmoothRelative;
1232  using MagickCore::DrawPathCurveToRelative;
1233  using MagickCore::DrawPathCurveToSmoothAbsolute;
1234  using MagickCore::DrawPathCurveToSmoothRelative;
1235  using MagickCore::DrawPathEllipticArcAbsolute;
1236  using MagickCore::DrawPathEllipticArcRelative;
1237  using MagickCore::DrawPathFinish;
1238  using MagickCore::DrawPathLineToAbsolute;
1239  using MagickCore::DrawPathLineToHorizontalAbsolute;
1240  using MagickCore::DrawPathLineToHorizontalRelative;
1241  using MagickCore::DrawPathLineToRelative;
1242  using MagickCore::DrawPathLineToVerticalAbsolute;
1243  using MagickCore::DrawPathLineToVerticalRelative;
1244  using MagickCore::DrawPathMoveToAbsolute;
1245  using MagickCore::DrawPathMoveToRelative;
1246  using MagickCore::DrawPathStart;
1247  using MagickCore::DrawPoint;
1248  using MagickCore::DrawPolygon;
1249  using MagickCore::DrawPolyline;
1250  using MagickCore::DrawPopClipPath;
1251  using MagickCore::DrawPopDefs;
1252  using MagickCore::DrawPopPattern;
1253  using MagickCore::DrawPushClipPath;
1254  using MagickCore::DrawPushDefs;
1255  using MagickCore::DrawPushPattern;
1256  using MagickCore::DrawRectangle;
1257  using MagickCore::DrawRender;
1258  using MagickCore::DrawRotate;
1259  using MagickCore::DrawRoundRectangle;
1260  using MagickCore::DrawScale;
1261  using MagickCore::DrawSetClipPath;
1262  using MagickCore::DrawSetClipRule;
1263  using MagickCore::DrawSetClipUnits;
1264  using MagickCore::DrawSetFillColor;
1265  using MagickCore::DrawSetFillOpacity;
1266  using MagickCore::DrawSetFillPatternURL;
1267  using MagickCore::DrawSetFillRule;
1268  using MagickCore::DrawSetFont;
1269  using MagickCore::DrawSetFontFamily;
1270  using MagickCore::DrawSetFontSize;
1271  using MagickCore::DrawSetFontStretch;
1272  using MagickCore::DrawSetFontStyle;
1273  using MagickCore::DrawSetFontWeight;
1274  using MagickCore::DrawSetGravity;
1275  using MagickCore::DrawSetStrokeAntialias;
1276  using MagickCore::DrawSetStrokeColor;
1277  using MagickCore::DrawSetStrokeDashArray;
1278  using MagickCore::DrawSetStrokeDashOffset;
1279  using MagickCore::DrawSetStrokeLineCap;
1280  using MagickCore::DrawSetStrokeLineJoin;
1281  using MagickCore::DrawSetStrokeMiterLimit;
1282  using MagickCore::DrawSetStrokeOpacity;
1283  using MagickCore::DrawSetStrokePatternURL;
1284  using MagickCore::DrawSetStrokeWidth;
1285  using MagickCore::DrawSetTextAntialias;
1286  using MagickCore::DrawSetTextDecoration;
1287  using MagickCore::DrawSetTextEncoding;
1288  using MagickCore::DrawSetTextInterlineSpacing;
1289  using MagickCore::DrawSetTextInterwordSpacing;
1290  using MagickCore::DrawSetTextKerning;
1291  using MagickCore::DrawSetTextUnderColor;
1292  using MagickCore::DrawSetViewbox;
1293  using MagickCore::DrawSkewX;
1294  using MagickCore::DrawSkewY;
1295  using MagickCore::DrawTranslate;
1296  using MagickCore::EdgeImage;
1297  using MagickCore::EmbossImage;
1298  using MagickCore::EncipherImage;
1299  using MagickCore::EnhanceImage;
1300  using MagickCore::EqualizeImage;
1301  using MagickCore::EvaluateImage;
1302  using MagickCore::ExportImagePixels;
1303  using MagickCore::ExportQuantumPixels;
1304  using MagickCore::ExtentImage;
1305  using MagickCore::FlipImage;
1306  using MagickCore::FloodfillPaintImage;
1307  using MagickCore::FlopImage;
1308  using MagickCore::FormatLocaleString;
1309  using MagickCore::ForwardFourierTransformImage;
1310  using MagickCore::FrameImage;
1311  using MagickCore::FxImage;
1312  using MagickCore::GammaImage;
1313  using MagickCore::GaussianBlurImage;
1314  using MagickCore::GaussianBlurImage;
1315  using MagickCore::GetAffineMatrix;
1316  using MagickCore::GetAuthenticMetacontent;
1317  using MagickCore::GetBlobSize;
1318  using MagickCore::GetCacheViewAuthenticMetacontent;
1319  using MagickCore::GetCacheViewAuthenticPixels;
1320  using MagickCore::GetCacheViewVirtualPixels;
1321  using MagickCore::GetClientName;
1322  using MagickCore::GetColorTuple;
1323  using MagickCore::GetDrawInfo;
1324  using MagickCore::GetGeometry;
1325  using MagickCore::GetImageArtifact;
1326  using MagickCore::GetImageMoments;
1327  using MagickCore::GetImageBoundingBox;
1328  using MagickCore::GetImageDistortion;
1329  using MagickCore::GetImageDepth;
1330  using MagickCore::GetImageMask;
1331  using MagickCore::GetImageMean;
1332  using MagickCore::GetImageKurtosis;
1333  using MagickCore::GetImageRange;
1334  using MagickCore::GetImageDepth;
1335  using MagickCore::GetImageInfo;
1336  using MagickCore::GetImageInfoFile;
1337  using MagickCore::GetImageOption;
1338  using MagickCore::GetImagePerceptualHash;
1339  using MagickCore::GetAuthenticPixels;
1340  using MagickCore::GetImageProfile;
1341  using MagickCore::GetImageProperty;
1342  using MagickCore::GetImageQuantizeError;
1343  using MagickCore::GetImageType;
1344  using MagickCore::GetMagickDecoderThreadSupport;
1345  using MagickCore::GetMagickEncoderThreadSupport;
1346  using MagickCore::GetMagickInfo;
1347  using MagickCore::GetMultilineTypeMetrics;
1348  using MagickCore::GetNextValueInLinkedList;
1349  using MagickCore::GetNumberOfElementsInLinkedList;
1350  using MagickCore::GetPixelBlue;
1351  using MagickCore::GetPixelChannelOffset;
1352  using MagickCore::GetPixelChannelTraits;
1353  using MagickCore::GetPixelGreen;
1354  using MagickCore::GetPixelInfo;
1355  using MagickCore::GetPixelRed;
1356  using MagickCore::GetNumberColors;
1357  using MagickCore::GetPageGeometry;
1358  using MagickCore::GetQuantizeInfo;
1359  using MagickCore::GetStringInfoDatum;
1360  using MagickCore::GetStringInfoLength;
1361  using MagickCore::GetTypeMetrics;
1362  using MagickCore::GetValueFromLinkedList;
1363  using MagickCore::GetVirtualMetacontent;
1364  using MagickCore::GetVirtualPixels;
1365  using MagickCore::GetImageVirtualPixelMethod;
1366  using MagickCore::GlobExpression;
1367  using MagickCore::GravityAdjustGeometry;
1368  using MagickCore::GrayscaleImage;
1369  using MagickCore::HaldClutImage;
1370  using MagickCore::HoughLineImage;
1371  using MagickCore::ImageToBlob;
1372  using MagickCore::ImagesToBlob;
1373  using MagickCore::ImplodeImage;
1374  using MagickCore::ImportQuantumPixels;
1375  using MagickCore::InterpretImageProperties;
1376  using MagickCore::InverseFourierTransformImage;
1377  using MagickCore::InvokeDynamicImageFilter;
1378  using MagickCore::IsEventLogging;
1379  using MagickCore::IsGeometry;
1380  using MagickCore::IsImageOpaque;
1381  using MagickCore::IsImagesEqual;
1382  using MagickCore::KuwaharaImage;
1383  using MagickCore::LevelImage;
1384  using MagickCore::LevelImageColors;
1385  using MagickCore::LevelizeImage;
1386  using MagickCore::LinearStretchImage;
1387  using MagickCore::LiquidRescaleImage;
1388  using MagickCore::LocalContrastImage;
1389  using MagickCore::LocaleCompare;
1390  using MagickCore::LockSemaphoreInfo;
1391  using MagickCore::LogMagickEvent;
1392  using MagickCore::MagickCoreTerminus;
1393  using MagickCore::MagickToMime;
1394  using MagickCore::MagnifyImage;
1395  using MagickCore::MergeImageLayers;
1396  using MagickCore::MinifyImage;
1397  using MagickCore::ModulateImage;
1398  using MagickCore::MorphologyImage;
1399  using MagickCore::MotionBlurImage;
1400  using MagickCore::NegateImage;
1401  using MagickCore::NewMagickWandFromImage;
1402  using MagickCore::NewPixelWand;
1403  using MagickCore::NormalizeImage;
1404  using MagickCore::OilPaintImage;
1405  using MagickCore::OpaquePaintImage;
1406  using MagickCore::OrderedDitherImage;
1407  using MagickCore::OptimizeImageLayers;
1408  using MagickCore::OptimizeImageTransparency;
1409  using MagickCore::OptimizePlusImageLayers;
1410  using MagickCore::ParseMetaGeometry;
1411  using MagickCore::PerceptibleImage;
1412  using MagickCore::PingBlob;
1413  using MagickCore::PingImage;
1414  using MagickCore::PixelSetPixelColor;
1415  using MagickCore::PolaroidImage;
1416  using MagickCore::PopDrawingWand;
1417  using MagickCore::PosterizeImage;
1418  using MagickCore::ProfileImage;
1419  using MagickCore::PushDrawingWand;
1420  using MagickCore::QuantizeImage;
1421  using MagickCore::QueueAuthenticPixels;
1422  using MagickCore::QueueCacheViewAuthenticPixels;
1423  using MagickCore::RaiseImage;
1424  using MagickCore::RandomThresholdImage;
1425  using MagickCore::ReadImage;
1426  using MagickCore::RegisterMagickInfo;
1427  using MagickCore::RelinquishMagickMemory;
1428  using MagickCore::RemapImage;
1429  using MagickCore::ResampleImage;
1430  using MagickCore::ResetLinkedListIterator;
1431  using MagickCore::ResizeImage;
1432  using MagickCore::ResizeMagickMemory;
1433  using MagickCore::RollImage;
1434  using MagickCore::RotateImage;
1435  using MagickCore::RotationalBlurImage;
1436  using MagickCore::SampleImage;
1437  using MagickCore::ScaleImage;
1438  using MagickCore::SegmentImage;
1439  using MagickCore::SelectiveBlurImage;
1440  using MagickCore::SeparateImage;
1441  using MagickCore::SepiaToneImage;
1442  using MagickCore::SetGeometry;
1443  using MagickCore::SetImageAlpha;
1444  using MagickCore::SetImageArtifact;
1445  using MagickCore::SetImageBackgroundColor;
1446  using MagickCore::SetImageColorspace;
1447  using MagickCore::SetImageDepth;
1448  using MagickCore::SetImageExtent;
1449  using MagickCore::SetImageInfo;
1450  using MagickCore::SetImageInfoFile;
1451  using MagickCore::SetImageMask;
1452  using MagickCore::SetImageOption;
1453  using MagickCore::SetImageProfile;
1454  using MagickCore::SetImageProperty;
1455  using MagickCore::SetImageRegistry;
1456  using MagickCore::SetImageType;
1457  using MagickCore::SetLogEventMask;
1458  using MagickCore::SetMagickResourceLimit;
1459  using MagickCore::SetImageVirtualPixelMethod;
1460  using MagickCore::SetPixelChannel;
1461  using MagickCore::SetImageChannelMask;
1462  using MagickCore::SetStringInfoDatum;
1463  using MagickCore::ShadeImage;
1464  using MagickCore::ShadowImage;
1465  using MagickCore::SharpenImage;
1466  using MagickCore::SharpenImage;
1467  using MagickCore::ShaveImage;
1468  using MagickCore::ShearImage;
1469  using MagickCore::SigmoidalContrastImage;
1470  using MagickCore::SignatureImage;
1471  using MagickCore::SimilarityImage;
1472  using MagickCore::SketchImage;
1473  using MagickCore::SmushImages;
1474  using MagickCore::SolarizeImage;
1475  using MagickCore::SparseColorImage;
1476  using MagickCore::SpliceImage;
1477  using MagickCore::SpreadImage;
1478  using MagickCore::StatisticImage;
1479  using MagickCore::SteganoImage;
1480  using MagickCore::StereoImage;
1481  using MagickCore::StripImage;
1482  using MagickCore::SwirlImage;
1483  using MagickCore::SyncCacheViewAuthenticPixels;
1484  using MagickCore::SyncImage;
1485  using MagickCore::SyncAuthenticPixels;
1486  using MagickCore::TextureImage;
1487  using MagickCore::ThrowException;
1488  using MagickCore::TintImage;
1489  using MagickCore::TransformImageColorspace;
1490  using MagickCore::TransparentPaintImage;
1491  using MagickCore::TransparentPaintImageChroma;
1492  using MagickCore::TransposeImage;
1493  using MagickCore::TransverseImage;
1494  using MagickCore::TrimImage;
1495  using MagickCore::UniqueImageColors;
1496  using MagickCore::UnlockSemaphoreInfo;
1497  using MagickCore::UnregisterMagickInfo;
1498  using MagickCore::UnsharpMaskImage;
1499  using MagickCore::VignetteImage;
1500  using MagickCore::WaveImage;
1501  using MagickCore::WaveletDenoiseImage;
1502  using MagickCore::WhiteThresholdImage;
1503  using MagickCore::WriteImage;
1504 
1505 #endif // MAGICKCORE_IMPLEMENTATION
1506 
1507 }
1508 
1510 //
1511 // No user-serviceable parts beyond this point
1512 //
1514 #define GetPPException \
1515  MagickCore::ExceptionInfo \
1516  *exceptionInfo; \
1517  exceptionInfo=MagickCore::AcquireExceptionInfo();
1518 #define GetAndSetPPChannelMask(channel) \
1519  MagickCore::ChannelType \
1520  channel_mask; \
1521  channel_mask=MagickCore::SetImageChannelMask(image(),channel)
1522 #define ClonePPDrawException(wand) \
1523  MagickCore::ExceptionInfo \
1524  *exceptionInfo; \
1525  exceptionInfo=MagickCore::DrawCloneExceptionInfo(wand)
1526 #define RestorePPChannelMask \
1527  MagickCore::SetPixelChannelMask(image(),channel_mask)
1528 #define SetPPChannelMask(channel) \
1529  (void) MagickCore::SetImageChannelMask(image(),channel)
1530 #define ThrowPPDrawException(quiet) \
1531  throwException(exceptionInfo,quiet); \
1532  (void) MagickCore::DestroyExceptionInfo(exceptionInfo)
1533 #define ThrowPPException(quiet) \
1534  throwException(exceptionInfo,quiet); \
1535  (void) MagickCore::DestroyExceptionInfo(exceptionInfo)
1536 
1537 #endif // Magick_Include_header
Definition: Blob.h:15