% December 2000 %
% %
% %
-% Copyright 1999-2010 ImageMagick Studio LLC, a non-profit organization %
+% Copyright 1999-2011 ImageMagick Studio LLC, a non-profit organization %
% dedicated to making software imaging solutions freely available. %
% %
% You may not use this file except in compliance with the License. You may %
ImageInfo
*read_info;
- unsigned long
+ MagickBooleanType
+ status;
+
+ size_t
flags;
wmfAPI
bounding_box;
wmf_eps_t
- *eps_info;
+ *eps_info;
wmf_error_t
- status;
+ wmf_status;
/*
Read WMF image.
flags|=WMF_OPT_IGNORE_NONFATAL;
flags|=WMF_OPT_FUNCTION;
options.function=wmf_eps_function;
- status=wmf_api_create(&wmf_info,flags,&options);
- if (status != wmf_E_None)
+ wmf_status=wmf_api_create(&wmf_info,(unsigned long) flags,&options);
+ if (wmf_status != wmf_E_None)
{
if (wmf_info != (wmfAPI *) NULL)
wmf_api_destroy(wmf_info);
ThrowReaderException(DelegateError,"UnableToInitializeWMFLibrary");
}
- status=wmf_bbuf_input(wmf_info,WMFReadBlob,WMFSeekBlob,WMFTellBlob,
+ wmf_status=wmf_bbuf_input(wmf_info,WMFReadBlob,WMFSeekBlob,WMFTellBlob,
(void *) image);
- if (status != wmf_E_None)
+ if (wmf_status != wmf_E_None)
{
wmf_api_destroy(wmf_info);
ThrowFileException(exception,FileOpenError,"UnableToOpenFile",
image=DestroyImageList(image);
return((Image *) NULL);
}
- status=wmf_scan(wmf_info,0,&bounding_box);
- if (status != wmf_E_None)
+ wmf_status=wmf_scan(wmf_info,0,&bounding_box);
+ if (wmf_status != wmf_E_None)
{
wmf_api_destroy(wmf_info);
ThrowReaderException(DelegateError,"FailedToScanFile");
}
eps_info->out=wmf_stream_create(wmf_info,file);
eps_info->bbox=bounding_box;
- status=wmf_play(wmf_info,0,&bounding_box);
- if (status != wmf_E_None)
+ wmf_status=wmf_play(wmf_info,0,&bounding_box);
+ if (wmf_status != wmf_E_None)
{
wmf_api_destroy(wmf_info);
ThrowReaderException(DelegateError,"FailedToRenderFile");
Read EPS image.
*/
read_info=CloneImageInfo(image_info);
- (void) FormatMagickString(read_info->filename,MaxTextExtent,"eps:%.1024s",
+ SetImageInfoBlob(read_info,(void *) NULL,0);
+ (void) FormatMagickString(read_info->filename,MaxTextExtent,"eps:%s",
filename);
image=ReadImage(read_info,exception);
read_info=DestroyImageInfo(read_info);
%
% The format of the RegisterWMFImage method is:
%
-% unsigned long RegisterWMFImage(void)
+% size_t RegisterWMFImage(void)
%
*/
-ModuleExport unsigned long RegisterWMFImage(void)
+ModuleExport size_t RegisterWMFImage(void)
{
MagickInfo
*entry;