extern "C" {
#endif
+#include "MagickCore/nt-base-private.h"
+
#define MagickMinBlobExtent 32767L
#if defined(MAGICKCORE_HAVE_FSEEKO)
# define fseek fseeko
% The format of the NewMagickImage method is:
%
% Image *NewMagickImage(const ImageInfo *image_info,
-% const size_t width,const size_t height,const PixelInfo *background)
+% const size_t width,const size_t height,const PixelInfo *background,
+% ExceptionInfo *exception)
%
% A description of each parameter follows:
%
%
% o background: the image color.
%
+% o exception: return any errors or warnings in this structure.
+%
*/
MagickExport Image *NewMagickImage(const ImageInfo *image_info,
- const size_t width,const size_t height,const PixelInfo *background)
+ const size_t width,const size_t height,const PixelInfo *background,
+ ExceptionInfo *exception)
{
CacheView
*image_view;
- ExceptionInfo
- *exception;
-
Image
*image;
*DestroyImage(Image *),
*GetImageClipMask(const Image *,ExceptionInfo *),
*GetImageMask(const Image *,ExceptionInfo *),
- *NewMagickImage(const ImageInfo *,const size_t,const size_t,
- const PixelInfo *),
+ *NewMagickImage(const ImageInfo *,const size_t,const size_t,const PixelInfo *,
+ ExceptionInfo *),
*ReferenceImage(Image *),
*SeparateImages(const Image *,ExceptionInfo *),
*SmushImages(const Image *,const MagickBooleanType,const ssize_t,
#include "MagickCore/mime-private.h"
#include "MagickCore/module.h"
#include "MagickCore/module-private.h"
-#if defined(MAGICKCORE_WINDOWS_SUPPORT)
-# include "MagickCore/nt-feature.h"
-#endif
+#include "MagickCore/nt-base-private.h"
#include "MagickCore/random-private.h"
#include "MagickCore/registry.h"
#include "MagickCore/registry-private.h"
#include "MagickCore/delegate.h"
#include "MagickCore/delegate-private.h"
#include "MagickCore/exception.h"
+#include "MagickCore/splay-tree.h"
#define WIN32_LEAN_AND_MEAN
#define VC_EXTRALEAN
#include "MagickCore/studio.h"
#if defined(MAGICKCORE_WINDOWS_SUPPORT)
#include "MagickCore/client.h"
+#include "MagickCore/cache.h"
+#include "MagickCore/color.h"
+#include "MagickCore/colorspace.h"
+#include "MagickCore/colorspace-private.h"
#include "MagickCore/exception-private.h"
+#include "MagickCore/image.h"
#include "MagickCore/locale_.h"
#include "MagickCore/log.h"
#include "MagickCore/magick.h"
#include "MagickCore/memory_.h"
+#include "MagickCore/monitor.h"
+#include "MagickCore/monitor-private.h"
+#include "MagickCore/pixel-accessor.h"
#include "MagickCore/resource_.h"
#include "MagickCore/resource-private.h"
#include "MagickCore/timer.h"
+#include "MagickCore/type.h"
#include "MagickCore/string_.h"
+#include "MagickCore/token.h"
#include "MagickCore/utility.h"
#include "MagickCore/version.h"
#if defined(MAGICKCORE_LTDL_DELEGATE)
return((void *) bitmapH);
}
\f
-#endif
-\f
/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
extern "C" {
#endif
-#include "MagickCore/splay-tree.h"
+#include "MagickCore/geometry.h"
#if defined(MAGICKCORE_WINDOWS_SUPPORT)
extern MagickExport void
#include "MagickCore/list.h"
#include "MagickCore/monitor.h"
#include "MagickCore/monitor-private.h"
+#include "MagickCore/nt-base-private.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/quantum.h"
#include "MagickCore/resource_.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/log.h"
#include "MagickCore/memory_.h"
+#include "MagickCore/nt-base-private.h"
#include "MagickCore/timer.h"
\f
/*
#include "MagickCore/hashmap.h"
#include "MagickCore/log.h"
#include "MagickCore/memory_.h"
+#include "MagickCore/nt-base-private.h"
#include "MagickCore/option.h"
#include "MagickCore/semaphore.h"
#include "MagickCore/splay-tree.h"
#define FC_WEIGHT_HEAVY FC_WEIGHT_BLACK
#endif
#endif
-#if defined(MAGICKCORE_WINDOWS_SUPPORT)
-# include "MagickCore/nt-feature.h"
-#endif
\f
/*
Define declarations.
extern "C" {
#endif
+#include "MagickCore/memory_.h"
+#include "MagickCore/nt-base-private.h"
+
extern MagickPrivate char
**GetPathComponents(const char *,size_t *),
**ListFiles(const char *,const char *,size_t *);
return(-1);
count=MultiByteToWideChar(CP_UTF8,0,path,-1,path_wide,count);
status=_waccess(path_wide,mode);
- path_wide=RelinquishMagickMemory(path_wide);
+ path_wide=(WCHAR *) RelinquishMagickMemory(path_wide);
return(status);
#endif
}
mode_wide=(WCHAR *) AcquireQuantumMemory(count,sizeof(*mode_wide));
if (mode_wide == (WCHAR *) NULL)
{
- path_wide=RelinquishMagickMemory(path_wide);
+ path_wide=(WCHAR *) RelinquishMagickMemory(path_wide);
return((FILE *) NULL);
}
count=MultiByteToWideChar(CP_UTF8,0,mode,-1,mode_wide,count);
file=_wfopen(path_wide,mode_wide);
- mode_wide=RelinquishMagickMemory(mode_wide);
- path_wide=RelinquishMagickMemory(path_wide);
+ mode_wide=(WCHAR *) RelinquishMagickMemory(mode_wide);
+ path_wide=(WCHAR *) RelinquishMagickMemory(path_wide);
return(file);
#endif
}
return(-1);
count=MultiByteToWideChar(CP_UTF8,0,path,-1,path_wide,count);
status=_wopen(path_wide,flags,mode);
- path_wide=RelinquishMagickMemory(path_wide);
+ path_wide=(WCHAR *) RelinquishMagickMemory(path_wide);
return(status);
#endif
}
type_wide=(WCHAR *) AcquireQuantumMemory(count,sizeof(*type_wide));
if (type_wide == (WCHAR *) NULL)
{
- command_wide=RelinquishMagickMemory(command_wide);
+ command_wide=(WCHAR *) RelinquishMagickMemory(command_wide);
return((FILE *) NULL);
}
count=MultiByteToWideChar(CP_UTF8,0,type,-1,type_wide,count);
file=_wpopen(command_wide,type_wide);
- type_wide=RelinquishMagickMemory(type_wide);
- command_wide=RelinquishMagickMemory(command_wide);
+ type_wide=(WCHAR *) RelinquishMagickMemory(type_wide);
+ command_wide=(WCHAR *) RelinquishMagickMemory(command_wide);
return(file);
#endif
}
return(-1);
count=MultiByteToWideChar(CP_UTF8,0,path,-1,path_wide,count);
status=_wremove(path_wide);
- path_wide=RelinquishMagickMemory(path_wide);
+ path_wide=(WCHAR *) RelinquishMagickMemory(path_wide);
return(status);
#endif
}
sizeof(*destination_wide));
if (destination_wide == (WCHAR *) NULL)
{
- source_wide=RelinquishMagickMemory(source_wide);
+ source_wide=(WCHAR *) RelinquishMagickMemory(source_wide);
return(-1);
}
count=MultiByteToWideChar(CP_UTF8,0,destination,-1,destination_wide,count);
status=_wrename(source_wide,destination_wide);
- destination_wide=RelinquishMagickMemory(destination_wide);
- source_wide=RelinquishMagickMemory(source_wide);
+ destination_wide=(WCHAR *) RelinquishMagickMemory(destination_wide);
+ source_wide=(WCHAR *) RelinquishMagickMemory(source_wide);
return(status);
#endif
}
if (path_wide == (WCHAR *) NULL)
return(-1);
count=MultiByteToWideChar(CP_UTF8,0,path,-1,path_wide,count);
- status=wstat(path_wide,attributes);
- path_wide=RelinquishMagickMemory(path_wide);
+ status=_wstat64(path_wide,attributes);
+ path_wide=(WCHAR *) RelinquishMagickMemory(path_wide);
return(status);
#endif
}
#include "MagickCore/log.h"
#include "MagickCore/magick-private.h"
#include "MagickCore/memory_.h"
+#include "MagickCore/nt-base-private.h"
#include "MagickCore/option.h"
#include "MagickCore/policy.h"
#include "MagickCore/resource_.h"
#include "MagickCore/magick.h"
#include "MagickCore/memory_.h"
#include "MagickCore/monitor.h"
+#include "MagickCore/nt-base-private.h"
#include "MagickCore/option.h"
#include "MagickCore/pixel-accessor.h"
#include "MagickCore/PreRvIcccm.h"
#include "MagickWand/MagickWand.h"
#include "MagickWand/mogrify-private.h"
#include "MagickCore/animate-private.h"
+#include "MagickCore/nt-base-private.h"
#include "MagickCore/string-private.h"
#include "MagickCore/xwindow-private.h"
\f
#include "MagickWand/studio.h"
#include "MagickWand/MagickWand.h"
#include "MagickWand/mogrify-private.h"
+#include "MagickCore/nt-base-private.h"
#include "MagickCore/string-private.h"
\f
/*
#include "MagickWand/studio.h"
#include "MagickWand/MagickWand.h"
#include "MagickWand/mogrify-private.h"
+#include "MagickCore/nt-base-private.h"
\f
/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#include "MagickWand/studio.h"
#include "MagickWand/MagickWand.h"
#include "MagickWand/mogrify-private.h"
+#include "MagickCore/nt-base-private.h"
#include "MagickCore/string-private.h"
#include "MagickCore/utility-private.h"
/*
#include "MagickWand/MagickWand.h"
#include "MagickWand/mogrify-private.h"
#include "MagickCore/display-private.h"
+#include "MagickCore/nt-base-private.h"
#include "MagickCore/string-private.h"
#include "MagickCore/xwindow-private.h"
\f
#include "MagickWand/studio.h"
#include "MagickWand/MagickWand.h"
#include "MagickWand/mogrify-private.h"
+#include "MagickCore/nt-base-private.h"
\f
/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
#include "MagickWand/studio.h"
#include "MagickWand/MagickWand.h"
#include "MagickWand/mogrify-private.h"
+#include "MagickCore/nt-base-private.h"
#include "MagickCore/string-private.h"
#include "MagickCore/xwindow-private.h"
\f
% o background: the image color.
%
*/
-WandExport MagickBooleanType MagickNewImage(MagickWand *wand,
- const size_t width,const size_t height,
- const PixelWand *background)
+WandExport MagickBooleanType MagickNewImage(MagickWand *wand,const size_t width,
+ const size_t height,const PixelWand *background)
{
Image
*images;
if (wand->debug != MagickFalse)
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name);
PixelGetMagickColor(background,&pixel);
- images=NewMagickImage(wand->image_info,width,height,&pixel);
+ images=NewMagickImage(wand->image_info,width,height,&pixel,&wand->exception);
if (images == (Image *) NULL)
return(MagickFalse);
- if (images->exception.severity != UndefinedException)
- InheritException(wand->exception,&images->exception);
return(InsertImageInWand(wand,images));
}
\f
#undef RadiansToDegrees
#include "MagickCore/image-private.h"
#include "MagickCore/monitor-private.h"
-#include "MagickCore/thread-private.h"
+#include "MagickCore/nt-base-private.h"
#include "MagickCore/string-private.h"
+#include "MagickCore/thread-private.h"
#include "MagickCore/utility-private.h"
\f
/*
#include "MagickWand/studio.h"
#include "MagickWand/MagickWand.h"
#include "MagickWand/mogrify-private.h"
+#include "MagickCore/nt-base-private.h"
#include "MagickCore/stream-private.h"
\f
/*