Magick++ 7.0.10

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