// Usage: analyze file...
//
-#include <cstring>
#include <Magick++.h>
#include <iostream>
#include <iomanip>
// Copyright Bob Friesenhahn, 1999, 2000, 2001, 2003
//
-#include <cstring>
#include <Magick++.h>
#include <string>
#include <iostream>
// Max run-time size 60MB (as compared with 95MB for PerlMagick) under SPARC Solaris
//
-#include <cstring>
#include <Magick++.h>
#include <string>
#include <iostream>
// Usage: detrans color file...
//
-#include <cstring>
#include <Magick++.h>
#include <iostream>
using namespace std;
// flipped and morphed version to "flip_out.miff".
//
-#include <cstring>
#include <Magick++.h>
#include <string>
#include <iostream>
// by Cristy.
//
-#include <cstring>
#include <Magick++.h>
#include <string>
#include <iostream>
// The PerlMagick "piddle" demo is written by John Cristy
//
-#include <cstring>
#include <Magick++.h>
#include <string>
#include <iostream>
// Concept and algorithms lifted from PerlMagick demo script
//
-#include <cstring>
#include <Magick++.h>
#include <string>
#include <iostream>
// [-resample resolution] input_file output_file
//
-#include <cstring>
#include <Magick++.h>
#include <iostream>
#include <string>
#define MAGICKCORE_IMPLEMENTATION 1
#define MAGICK_PLUSPLUS_IMPLEMENTATION 1
-#include <cstring>
#include "Magick++/Include.h"
#include "Magick++/Blob.h"
#include "Magick++/BlobRef.h"
#define MAGICKCORE_IMPLEMENTATION 1
#define MAGICK_PLUSPLUS_IMPLEMENTATION 1
-#include <cstring>
#include "Magick++/Include.h"
#include "Magick++/Thread.h"
#include "Magick++/BlobRef.h"
#define MAGICKCORE_IMPLEMENTATION 1
#define MAGICK_PLUSPLUS_IMPLEMENTATION 1
-#include <cstring>
#include "Magick++/Include.h"
#include "Magick++/CoderInfo.h"
#include "Magick++/Exception.h"
#define MAGICKCORE_IMPLEMENTATION
#define MAGICK_PLUSPLUS_IMPLEMENTATION 1
-#include <cstring>
#include "Magick++/Include.h"
#include <string>
#define MAGICK_PLUSPLUS_IMPLEMENTATION 1
#define MAGICK_DRAWABLE_IMPLEMENTATION
-#include <cstring>
#include <math.h>
#include <string>
#include "Magick++/Include.h"
#define MAGICKCORE_IMPLEMENTATION 1
#define MAGICK_PLUSPLUS_IMPLEMENTATION 1
-#include <cstring>
#include "Magick++/Include.h"
#include <string>
#include <errno.h>
#define MAGICKCORE_IMPLEMENTATION 1
#define MAGICK_PLUSPLUS_IMPLEMENTATION 1
-#include <cstring>
#include "Magick++/Include.h"
#include <string>
#define MAGICKCORE_IMPLEMENTATION 1
#define MAGICK_PLUSPLUS_IMPLEMENTATION 1
-#include <cstring>
#include "Magick++/Include.h"
#include <string>
#include <ctype.h> // for isdigit
#define MAGICK_PLUSPLUS_IMPLEMENTATION 1
#include <cstdlib>
-#include <cstring>
#include <string>
#include <string.h>
#include <errno.h>
#define MAGICKCORE_IMPLEMENTATION 1
#define MAGICK_PLUSPLUS_IMPLEMENTATION 1
-#include <cstring>
#include "Magick++/ImageRef.h"
#include "Magick++/Exception.h"
#include "Magick++/Options.h"
#undef class
}
-#if defined(MAGICKCORE_WINDOWS_SUPPORT) || defined(__CYGWIN__) || defined(__MINGW32__)
+//
+// Provide appropriate DLL imports/exports for Visual C++,
+// Borland C++Builder and MinGW builds.
+//
+#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)
+# define MagickCplusPlusDLLSupported
+#endif
+#if defined(MagickCplusPlusDLLSupported)
+# if defined(_MT) && defined(_DLL) && !defined(_LIB) && !defined(STATIC_MAGICK)
+//
+// In a native Windows build, the following defines are used:
+//
+// _MT = Multithreaded
+// _DLL = Using code is part of a DLL
+// _LIB = Using code is being built as a library.
+// _MAGICKMOD_ = Build uses loadable modules (Magick++ does not care about this)
+//
+// In the case where ImageMagick is built as a static library but the
+// using code is dynamic, STATIC_MAGICK may be defined in the project to
+// override triggering dynamic library behavior.
+//
+# define MagickDLLBuild
# define MagickPPPrivate
-# if defined(_MT) && defined(_DLL) && !defined(_MAGICKDLL_) && !defined(_LIB)
-# define _MAGICKDLL_
-# endif
-# if defined(_MAGICKDLL_)
-# if defined(_VISUALC_)
-# pragma warning( disable: 4273 ) /* Disable the dll linkage warnings */
-# endif
-# if !defined(_MAGICKLIB_)
-# if defined(__GNUC__)
-# define MagickPPExport __attribute__ ((dllimport))
-# else
-# define MagickPPExport __declspec(dllimport)
-# endif
-# if defined(_VISUALC_)
-# pragma message( "Magick++ lib DLL import interface" )
-# endif
+# if defined(_VISUALC_)
+# pragma warning( disable: 4273 ) /* Disable the stupid dll linkage warnings */
+# pragma warning( disable: 4251 )
+# endif
+# if !defined(MAGICKCORE_IMPLEMENTATION)
+# if defined(__GNUC__)
+# define MagickPPExport __attribute__ ((dllimport))
+# else
+# define MagickPPExport __declspec(dllimport)
+# endif
+# if defined(_VISUALC_)
+# pragma message( "Magick++ lib DLL import" )
+# endif
+# else
+# if defined(__BORLANDC__)
+# define MagickPPExport __declspec(dllexport)
+# pragma message( "BCBMagick++ lib DLL export" )
+# else
+# if defined(__GNUC__)
+# define MagickPPExport __attribute__ ((dllexport))
+# else
+# define MagickPPExport __declspec(dllexport)
+# endif
+# endif
+# if defined(_VISUALC_)
+# pragma message( "Magick++ lib DLL export" )
+# endif
+# endif
# else
-# if defined(__GNUC__)
-# define MagickPPExport __attribute__ ((dllexport))
-# else
-# define MagickPPExport __declspec(dllexport)
-# endif
-# if defined(_VISUALC_)
-# pragma message( "Magick++ lib DLL export interface" )
-# endif
-# endif
-# else
-# define MagickPPExport
-# if defined(_VISUALC_)
-# pragma message( "Magick++ lib static interface" )
+# define MagickPPExport
+# if defined(_VISUALC_)
+# pragma message( "Magick++ lib static interface" )
+# endif
# endif
-# endif
-
-# if defined(_DLL) && !defined(_LIB)
-# if defined(__GNUC__)
-# define ModuleExport __attribute__ ((dllexport))
-# else
-# define ModuleExport __declspec(dllexport)
-# endif
-# if defined(_VISUALC_)
-# pragma message( "Magick++ module DLL export interface" )
-# endif
-# else
-# define ModuleExport
-# if defined(_VISUALC_)
-# pragma message( "Magick++ module static interface" )
-# endif
-
-# endif
-# define MagickPPGlobal __declspec(thread)
-# if defined(_VISUALC_)
-# pragma warning(disable : 4018)
-# pragma warning(disable : 4068)
-# pragma warning(disable : 4244)
-# pragma warning(disable : 4142)
-# pragma warning(disable : 4800)
-# pragma warning(disable : 4786)
-# pragma warning(disable : 4996)
-# endif
#else
# if __GNUC__ >= 4
# define MagickPPExport __attribute__ ((visibility ("default")))
# define MagickPPExport
# define MagickPPPrivate
# endif
-# define MagickPPGlobal
+#endif
+
+#if defined(WIN32) && defined(_VISUALC_)
+# pragma warning(disable : 4996) /* function deprecation warnings */
#endif
//
using MagickCore::GetImageQuantizeError;
using MagickCore::GetImageType;
using MagickCore::GetMagickInfo;
+ using MagickCore::GetPixelBlue;
+ using MagickCore::GetPixelGreen;
using MagickCore::GetPixelInfo;
+ using MagickCore::GetPixelRed;
using MagickCore::GetNumberColors;
using MagickCore::GetPageGeometry;
using MagickCore::GetQuantizeInfo;
using MagickCore::SetMagickInfo;
using MagickCore::SetMagickResourceLimit;
using MagickCore::SetImageVirtualPixelMethod;
+ using MagickCore::SetPixelChannelMap;
using MagickCore::SetPixelChannelMask;
using MagickCore::SetStringInfoDatum;
using MagickCore::ShadeImage;
#define MAGICKCORE_IMPLEMENTATION 1
#define MAGICK_PLUSPLUS_IMPLEMENTATION 1
-#include <cstring>
#include "Magick++/Include.h"
#include <string>
#include <string.h>
#define MAGICKCORE_IMPLEMENTATION 1
#define MAGICK_PLUSPLUS_IMPLEMENTATION 1
-#include <cstring>
#include <string>
#include <string.h>
#include <stdlib.h>
#define MAGICKCORE_IMPLEMENTATION 1
#define MAGICK_PLUSPLUS_IMPLEMENTATION 1
-#include <cstring>
#include <cstring>
#include "Magick++/Include.h"
#include <string> // This is here to compile with Visual C++
#define MAGICKCORE_IMPLEMENTATION 1
#define MAGICK_PLUSPLUS_IMPLEMENTATION 1
-#include <cstring>
#include <Magick++/Image.h>
#include <Magick++/STL.h>
#define MAGICKCORE_IMPLEMENTATION 1
#define MAGICK_PLUSPLUS_IMPLEMENTATION 1
-#include <cstring>
#include "Magick++/Thread.h"
#include "Magick++/Exception.h"
#define MAGICKCORE_IMPLEMENTATION 1
#define MAGICK_PLUSPLUS_IMPLEMENTATION 1
-#include <cstring>
#include "Magick++/TypeMetric.h"
#include <string.h>
// Test STL appendImages function
//
-#include <cstring>
#include <Magick++.h>
#include <string>
#include <iostream>
// Tests for setting/getting Magick::Image attributes
//
-#include <cstring>
#include <Magick++.h>
#include <string>
#include <iostream>
// Test STL averageImages function
//
-#include <cstring>
#include <Magick++.h>
#include <string>
#include <iostream>
// Test STL coalesceImages function
//
-#include <cstring>
#include <Magick++.h>
#include <string>
#include <iostream>
// Test Magick::CoderInfo class and Magick::coderInfoList
//
-#include <cstring>
#include <Magick++.h>
#include <string>
#include <iostream>
// Test Magick::Color classes
//
-#include <cstring>
#include <Magick++.h>
#include <string>
#include <iostream>
#undef USE_VECTOR
#define USE_MAP
-#include <cstring>
#include <Magick++.h>
#include <string>
#include <iostream>
// Tests for throwing exceptions
//
-#include <cstring>
#include <Magick++.h>
#include <string>
#include <iostream>
// Test STL montageImages function
//
-#include <cstring>
#include <Magick++.h>
#include <string>
#include <iostream>
// Test STL morphImages function
//
-#include <cstring>
#include <Magick++.h>
#include <string>
#include <iostream>
// Test reading/writing BLOBs using Magick++
//
-#include <cstring>
#include <Magick++.h>
#include <string>
#include <iostream>
// Test STL readImages and writeImages functions
//
-#include <cstring>
#include <Magick++.h>
#include <string>
#include <iostream>
extern "C" {
#endif
+#if defined(MAGICKCORE_X11_DELEGATE)
+#include "MagickCore/xwindow-private.h"
+
+extern MagickExport Image
+ *XAnimateImages(Display *,XResourceInfo *,char **,const int,Image *,
+ ExceptionInfo *);
+
+extern MagickExport void
+ XAnimateBackgroundImage(Display *,XResourceInfo *,Image *,ExceptionInfo *);
+#endif
+
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif
extern MagickExport MagickBooleanType
AnimateImages(const ImageInfo *,Image *,ExceptionInfo *);
-#if defined(MAGICKCORE_X11_DELEGATE)
-#include "MagickCore/xwindow.h"
-
-extern MagickExport Image
- *XAnimateImages(Display *,XResourceInfo *,char **,const int,Image *,
- ExceptionInfo *);
-
-extern MagickExport void
- XAnimateBackgroundImage(Display *,XResourceInfo *,Image *,ExceptionInfo *);
-#endif
-
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif
extern "C" {
#endif
+#if defined(MAGICKCORE_X11_DELEGATE)
+#include "MagickCore/xwindow-private.h"
+
+extern MagickExport Image
+ *XDisplayImage(Display *,XResourceInfo *,char **,int,Image **,size_t *,
+ ExceptionInfo *);
+
+extern MagickExport MagickBooleanType XDisplayBackgroundImage(Display *,
+ XResourceInfo *,Image *,ExceptionInfo *);
+#endif
+
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif
RemoteDisplayCommand(const ImageInfo *,const char *,const char *,
ExceptionInfo *);
-#if defined(MAGICKCORE_X11_DELEGATE)
-#include "MagickCore/xwindow.h"
-
-extern MagickExport Image
- *XDisplayImage(Display *,XResourceInfo *,char **,int,Image **,size_t *,
- ExceptionInfo *);
-
-extern MagickExport MagickBooleanType XDisplayBackgroundImage(Display *,
- XResourceInfo *,Image *,ExceptionInfo *);
-#endif
-
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif
#include "MagickCore/exception.h"
#include "MagickCore/geometry.h"
#include "MagickCore/quantize.h"
-#include "MagickCore/xwindow.h"
#if defined(__cplusplus) || defined(c_plusplus)
# define klass c_class
geometry[MaxTextExtent];
} XDrawInfo;
-struct _XImportInfo
-{
- MagickBooleanType
- frame,
- borders,
- screen,
- descend,
- silent;
-};
-
typedef enum
{
DefaultState = 0x0000,
pen_index;
} XPixelInfo;
-struct _XResourceInfo
+typedef struct _XResourceInfo
{
XrmDatabase
resource_database;
char
home_directory[MaxTextExtent];
-};
+} XResourceInfo;
typedef struct _XWindowInfo
{
*XInitializeWindows(Display *,XResourceInfo *),
*XSetWindows(XWindows *);
+extern MagickExport char
+ *XGetResourceClass(XrmDatabase,const char *,const char *,char *),
+ *XGetResourceInstance(XrmDatabase,const char *,const char *,const char *),
+ *XGetScreenDensity(Display *);
+
+extern MagickExport int
+ XError(Display *,XErrorEvent *);
+
+extern MagickExport MagickBooleanType
+ XRemoteCommand(Display *,const char *,const char *);
+
+extern MagickExport void
+ DestroyXResources(void),
+ XDestroyResourceInfo(XResourceInfo *),
+ XGetResourceInfo(const ImageInfo *,XrmDatabase,const char *,XResourceInfo *),
+ XRetainWindowColors(Display *,const Window);
+
+extern MagickExport XrmDatabase
+ XGetResourceDatabase(Display *,const char *);
+
static inline MagickRealType XPixelIntensity(const XColor *pixel)
{
MagickRealType
extern "C" {
#endif
-#if defined(MAGICKCORE_X11_DELEGATE)
-#include <X11/Xos.h>
-#include <X11/Xlib.h>
-#include <X11/Xresource.h>
-
typedef struct _XImportInfo
- XImportInfo;
-
-typedef struct _XResourceInfo
- XResourceInfo;
-
-extern MagickExport char
- *XGetResourceClass(XrmDatabase,const char *,const char *,char *),
- *XGetResourceInstance(XrmDatabase,const char *,const char *,const char *),
- *XGetScreenDensity(Display *);
-
-extern MagickExport int
- XError(Display *,XErrorEvent *);
-
-extern MagickExport XrmDatabase
- XGetResourceDatabase(Display *,const char *);
-
-extern MagickExport void
- XGetResourceInfo(const ImageInfo *,XrmDatabase,const char *,XResourceInfo *),
- XRetainWindowColors(Display *,const Window);
-#endif
+{
+ MagickBooleanType
+ frame,
+ borders,
+ screen,
+ descend,
+ silent;
+} XImportInfo;
extern MagickExport Image
*XImportImage(const ImageInfo *,XImportInfo *);
-extern MagickExport MagickBooleanType
- XRemoteCommand(Display *,const char *,const char *);
-
extern MagickExport void
- DestroyXResources(void),
- XDestroyResourceInfo(XResourceInfo *),
XGetImportInfo(XImportInfo *);
#if defined(__cplusplus) || defined(c_plusplus)