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