if (image->storage_class != DirectClass)
(void) SetImageStorageClass(image,DirectClass,&image->exception);
if (image->matte == MagickFalse)
- (void) SetImageAlphaChannel(image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,&image->exception);
}
direction=1.0;
if (draw_info->direction == RightToLeftDirection)
/*
Render fill color.
*/
+ exception=(&image->exception);
if (image->matte == MagickFalse)
- (void) SetImageAlphaChannel(image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
if (annotate_image->matte == MagickFalse)
- (void) SetImageAlphaChannel(annotate_image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(annotate_image,OpaqueAlphaChannel,
+ exception);
fill_color=draw_info->fill;
- exception=(&image->exception);
annotate_view=AcquireCacheView(annotate_image);
for (y=0; y < (ssize_t) annotate_image->rows; y++)
{
break;
}
}
- if (SetImageColorspace(image,colorspace) == MagickFalse)
+ exception=(&image->exception);
+ if (SetImageColorspace(image,colorspace,exception) == MagickFalse)
return(MagickFalse);
status=MagickTrue;
progress=0;
- exception=(&image->exception);
switch (colorspace)
{
case CMYColorspace:
z_map=(TransformPacket *) RelinquishMagickMemory(z_map);
y_map=(TransformPacket *) RelinquishMagickMemory(y_map);
x_map=(TransformPacket *) RelinquishMagickMemory(x_map);
- if (SetImageColorspace(image,colorspace) == MagickFalse)
+ if (SetImageColorspace(image,colorspace,exception) == MagickFalse)
return(MagickFalse);
return(status);
}
% The format of the SetImageColorspace method is:
%
% MagickBooleanType SetImageColorspace(Image *image,
-% const ColorspaceType colorspace)
+% const ColorspaceType colorspace,ExceptiionInfo *exception)
%
% A description of each parameter follows:
%
%
% o colorspace: the colorspace.
%
+% o exception: return any errors or warnings in this structure.
+%
*/
MagickExport MagickBooleanType SetImageColorspace(Image *image,
- const ColorspaceType colorspace)
+ const ColorspaceType colorspace,ExceptionInfo *exception)
{
+ PixelPacket
+ pixel;
+
image->colorspace=colorspace;
- return(MagickTrue);
+ return(GetOneAuthenticPixel(image,0,0,&pixel,exception));
}
\f
/*
if (image->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
if (colorspace == UndefinedColorspace)
- return(SetImageColorspace(image,colorspace));
+ return(SetImageColorspace(image,colorspace,&image->exception));
if (image->colorspace == colorspace)
return(MagickTrue);
if ((colorspace == RGBColorspace) ||
status=MagickFalse;
}
image_view=DestroyCacheView(image_view);
- if (SetImageColorspace(image,RGBColorspace) == MagickFalse)
+ if (SetImageColorspace(image,RGBColorspace,exception) == MagickFalse)
return(MagickFalse);
return(status);
}
status=MagickFalse;
}
image_view=DestroyCacheView(image_view);
- if (SetImageColorspace(image,RGBColorspace) == MagickFalse)
+ if (SetImageColorspace(image,RGBColorspace,exception) == MagickFalse)
return(MagickFalse);
return(status);
}
status=MagickFalse;
}
image_view=DestroyCacheView(image_view);
- if (SetImageColorspace(image,RGBColorspace) == MagickFalse)
+ if (SetImageColorspace(image,RGBColorspace,exception) == MagickFalse)
return(MagickFalse);
return(status);
}
status=MagickFalse;
}
image_view=DestroyCacheView(image_view);
- if (SetImageColorspace(image,RGBColorspace) == MagickFalse)
+ if (SetImageColorspace(image,RGBColorspace,exception) == MagickFalse)
return(MagickFalse);
return(status);
}
status=MagickFalse;
}
image_view=DestroyCacheView(image_view);
- if (SetImageColorspace(image,RGBColorspace) == MagickFalse)
+ if (SetImageColorspace(image,RGBColorspace,exception) == MagickFalse)
return(MagickFalse);
return(status);
}
status=MagickFalse;
}
image_view=DestroyCacheView(image_view);
- if (SetImageColorspace(image,RGBColorspace) == MagickFalse)
+ if (SetImageColorspace(image,RGBColorspace,exception) == MagickFalse)
return(MagickFalse);
return(status);
}
}
image_view=DestroyCacheView(image_view);
logmap=(Quantum *) RelinquishMagickMemory(logmap);
- if (SetImageColorspace(image,RGBColorspace) == MagickFalse)
+ if (SetImageColorspace(image,RGBColorspace,exception) == MagickFalse)
return(MagickFalse);
return(status);
}
z_map=(TransformPacket *) RelinquishMagickMemory(z_map);
y_map=(TransformPacket *) RelinquishMagickMemory(y_map);
x_map=(TransformPacket *) RelinquishMagickMemory(x_map);
- if (SetImageColorspace(image,RGBColorspace) == MagickFalse)
+ if (SetImageColorspace(image,RGBColorspace,exception) == MagickFalse)
return(MagickFalse);
return(MagickTrue);
}
extern MagickExport MagickBooleanType
RGBTransformImage(Image *,const ColorspaceType),
- SetImageColorspace(Image *,const ColorspaceType),
+ SetImageColorspace(Image *,const ColorspaceType,ExceptionInfo *),
TransformImageColorspace(Image *,const ColorspaceType),
TransformRGBImage(Image *,const ColorspaceType);
difference_image=CloneImage(image,0,0,MagickTrue,exception);
if (difference_image == (Image *) NULL)
return((Image *) NULL);
- (void) SetImageAlphaChannel(difference_image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(difference_image,OpaqueAlphaChannel,exception);
highlight_image=CloneImage(image,image->columns,image->rows,MagickTrue,
exception);
if (highlight_image == (Image *) NULL)
highlight_image=DestroyImage(highlight_image);
return((Image *) NULL);
}
- (void) SetImageAlphaChannel(highlight_image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(highlight_image,OpaqueAlphaChannel,exception);
(void) QueryMagickColor("#f1001ecc",&highlight,exception);
artifact=GetImageArtifact(image,"highlight-color");
if (artifact != (const char *) NULL)
channel to exist, to add transparency.
*/
if (image->matte == MagickFalse)
- (void) SetImageAlphaChannel(image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
modify_outside_overlay=MagickTrue;
break;
}
/*
Create mattes for blending.
*/
- (void) SetImageAlphaChannel(composite_image,OpaqueAlphaChannel);
+ exception=(&image->exception);
+ (void) SetImageAlphaChannel(composite_image,OpaqueAlphaChannel,exception);
opacity=(Quantum) (ScaleQuantumToChar((Quantum) QuantumRange)-
((ssize_t) ScaleQuantumToChar((Quantum) QuantumRange)*blend)/100);
- exception=(&image->exception);
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
image->matte=MagickTrue;
/*
Image has not transparency channel, so we free to use it
*/
- (void) SetImageAlphaChannel(tmp_image,SetAlphaChannel);
+ (void) SetImageAlphaChannel(tmp_image,SetAlphaChannel,exception);
resize_image=DistortImage(tmp_image,AffineDistortion,12,distort_args,
- MagickTrue,exception),
+ MagickTrue,exception),
tmp_image=DestroyImage(tmp_image);
if ( resize_image == (Image *) NULL )
return((Image *) NULL);
- (void) SetImageAlphaChannel(resize_image,DeactivateAlphaChannel);
- InheritException(exception,&image->exception);
+ (void) SetImageAlphaChannel(resize_image,DeactivateAlphaChannel,exception);
}
else
{
PushPixelChannelMap(tmp_image,AlphaChannel);
(void) SeparateImage(tmp_image);
PopPixelChannelMap(tmp_image);
- (void) SetImageAlphaChannel(tmp_image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(tmp_image,OpaqueAlphaChannel,exception);
resize_alpha=DistortImage(tmp_image,AffineDistortion,12,distort_args,
MagickTrue,exception),
tmp_image=DestroyImage(tmp_image);
return((Image *) NULL);
}
/* replace resize images alpha with the separally distorted alpha */
- (void) SetImageAlphaChannel(resize_image,DeactivateAlphaChannel);
- (void) SetImageAlphaChannel(resize_alpha,DeactivateAlphaChannel);
+ (void) SetImageAlphaChannel(resize_image,DeactivateAlphaChannel,exception);
+ (void) SetImageAlphaChannel(resize_alpha,DeactivateAlphaChannel,exception);
(void) CompositeImage(resize_image,CopyOpacityCompositeOp,resize_alpha,
- 0,0);
- InheritException(exception,&resize_image->exception);
+ 0,0);
resize_alpha=DestroyImage(resize_alpha);
}
(void) SetImageVirtualPixelMethod(resize_image,vp_save);
Draw polygon or line.
*/
if (image->matte == MagickFalse)
- (void) SetImageAlphaChannel(image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(dynamic,4) shared(status)
#endif
case MattePrimitive:
{
if (image->matte == MagickFalse)
- (void) SetImageAlphaChannel(image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
switch (primitive_info->method)
{
case PointMethod:
(void) TransformImage(&composite_image,(char *) NULL,geometry);
}
if (composite_image->matte == MagickFalse)
- (void) SetImageAlphaChannel(composite_image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(composite_image,OpaqueAlphaChannel,
+ exception);
if (draw_info->alpha != OpaqueAlpha)
(void) SetImageOpacity(composite_image,draw_info->alpha);
SetGeometry(image,&geometry);
clut_map=(PixelInfo *) RelinquishMagickMemory(clut_map);
if ((clut_image->matte != MagickFalse) &&
((GetPixelAlphaTraits(image) & UpdatePixelTrait) != 0))
- (void) SetImageAlphaChannel(image,ActivateAlphaChannel);
+ (void) SetImageAlphaChannel(image,ActivateAlphaChannel,exception);
return(status);
}
\f
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
if (image->matte == MagickFalse)
- (void) SetImageAlphaChannel(image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
/*
Hald clut image.
*/
count=FormatMagickCaption(caption_image,annotate_info,MagickTrue,&metrics,
&caption);
status=SetImageExtent(caption_image,image->columns,(size_t)
- ((count+1)*(metrics.ascent-metrics.descent)+0.5));
+ ((count+1)*(metrics.ascent-metrics.descent)+0.5),exception);
if (status == MagickFalse)
caption_image=DestroyImage(caption_image);
else
caption_image=DestroyImage(caption_image);
}
(void) QueryColorDatabase("none",&picture_image->background_color,exception);
- (void) SetImageAlphaChannel(picture_image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(picture_image,OpaqueAlphaChannel,exception);
rotate_image=RotateImage(picture_image,90.0,exception);
picture_image=DestroyImage(picture_image);
if (rotate_image == (Image *) NULL)
if (border_image == (Image *) NULL)
return((Image *) NULL);
if (border_image->matte == MagickFalse)
- (void) SetImageAlphaChannel(border_image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(border_image,OpaqueAlphaChannel,exception);
/*
Shadow image.
*/
}
}
image_view=DestroyCacheView(image_view);
- (void) SetImageColorspace(image,RGBColorspace);
+ (void) SetImageColorspace(image,RGBColorspace,exception);
return(status);
}
\f
% The format of the SetImageAlphaChannel method is:
%
% MagickBooleanType SetImageAlphaChannel(Image *image,
-% const AlphaChannelType alpha_type)
+% const AlphaChannelType alpha_type,ExceptionInfo *exception)
%
% A description of each parameter follows:
%
% OpaqueAlphaChannel, SetAlphaChannel, ShapeAlphaChannel, and
% TransparentAlphaChannel.
%
+% o exception: return any errors or warnings in this structure.
+%
+%
*/
MagickExport MagickBooleanType SetImageAlphaChannel(Image *image,
- const AlphaChannelType alpha_type)
+ const AlphaChannelType alpha_type,ExceptionInfo *exception)
{
MagickBooleanType
status;
+ PixelPacket
+ pixel;
+
assert(image != (Image *) NULL);
if (image->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"...");
CacheView
*image_view;
- ExceptionInfo
- *exception;
-
MagickBooleanType
status;
*/
if (image->matte == MagickFalse)
break;
- exception=(&image->exception);
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
break;
GetPixelInfo(image,&background);
case UndefinedAlphaChannel:
break;
}
- return(status);
+ if (status == MagickFalse)
+ return(status);
+ return(GetOneAuthenticPixel(image,0,0,&pixel,exception));
}
\f
/*
% The format of the SetImageStorageClass method is:
%
% MagickBooleanType SetImageStorageClass(Image *image,
-% const ClassType storage_class)
+% const ClassType storage_class,ExceptionInfo *exception)
%
% A description of each parameter follows:
%
% The format of the SetImageExtent method is:
%
% MagickBooleanType SetImageExtent(Image *image,const size_t columns,
-% const size_t rows)
+% const size_t rows,ExceptionInfo *exception)
%
% A description of each parameter follows:
%
%
% o rows: The image height in pixels.
%
+% o exception: return any errors or warnings in this structure.
+%
*/
MagickExport MagickBooleanType SetImageExtent(Image *image,const size_t columns,
- const size_t rows)
+ const size_t rows,ExceptionInfo *exception)
{
+ PixelPacket
+ pixel;
+
if ((columns == 0) || (rows == 0))
return(MagickFalse);
image->columns=columns;
image->rows=rows;
- return(MagickTrue);
+ return(GetOneAuthenticPixel(image,0,0,&pixel,exception));
}
\f
/*
const char
*artifact;
+ ExceptionInfo
+ *exception;
+
ImageInfo
*image_info;
artifact=GetImageArtifact(image,"dither");
if (artifact != (const char *) NULL)
(void) SetImageOption(image_info,"dither",artifact);
+ exception=(&image->exception);
switch (type)
{
case BilevelType:
if (IsImageGray(image,&image->exception) == MagickFalse)
status=TransformImageColorspace(image,GRAYColorspace);
if (image->matte == MagickFalse)
- (void) SetImageAlphaChannel(image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
break;
}
case PaletteType:
if (IsRGBColorspace(image->colorspace) == MagickFalse)
status=TransformImageColorspace(image,RGBColorspace);
if (image->matte == MagickFalse)
- (void) SetImageAlphaChannel(image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
PushPixelChannelMap(image,AlphaChannel);
(void) BilevelImage(image,(double) QuantumRange/2.0);
PopPixelChannelMap(image);
if (IsRGBColorspace(image->colorspace) == MagickFalse)
status=TransformImageColorspace(image,RGBColorspace);
if (image->matte == MagickFalse)
- (void) SetImageAlphaChannel(image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
quantize_info=AcquireQuantizeInfo(image_info);
quantize_info->colorspace=TransparentColorspace;
status=QuantizeImage(quantize_info,image);
if (image->storage_class != DirectClass)
status=SetImageStorageClass(image,DirectClass,&image->exception);
if (image->matte == MagickFalse)
- (void) SetImageAlphaChannel(image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
break;
}
case ColorSeparationType:
if (image->storage_class != DirectClass)
status=SetImageStorageClass(image,DirectClass,&image->exception);
if (image->matte == MagickFalse)
- (void) SetImageAlphaChannel(image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
break;
}
case OptimizeType:
ModifyImage(Image **,ExceptionInfo *),
ResetImagePage(Image *,const char *),
SeparateImage(Image *),
- SetImageAlphaChannel(Image *,const AlphaChannelType),
+ SetImageAlphaChannel(Image *,const AlphaChannelType,ExceptionInfo *),
SetImageBackgroundColor(Image *),
SetImageClipMask(Image *,const Image *),
SetImageColor(Image *,const PixelInfo *),
- SetImageExtent(Image *,const size_t,const size_t),
+ SetImageExtent(Image *,const size_t,const size_t,ExceptionInfo *),
SetImageInfo(ImageInfo *,const unsigned int,ExceptionInfo *),
SetImageMask(Image *,const Image *),
SetImageOpacity(Image *,const Quantum),
if (bounds->x < 0)
return;
- if (image->matte == MagickFalse)
- (void) SetImageAlphaChannel(image,OpaqueAlphaChannel);
exception=(&image->exception);
+ if (image->matte == MagickFalse)
+ (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
for (y=0; y < (ssize_t) bounds->height; y++)
{
register ssize_t
/* #undef AUTOTRACE_DELEGATE */
/* Define if coders and filters are to be built as modules. */
-#ifndef MAGICKCORE_BUILD_MODULES
-#define MAGICKCORE_BUILD_MODULES 1
-#endif
+/* #undef BUILD_MODULES */
/* Define if you have the bzip2 library */
#ifndef MAGICKCORE_BZLIB_DELEGATE
#endif
/* Define if you have FFTW library */
-#ifndef MAGICKCORE_FFTW_DELEGATE
-#define MAGICKCORE_FFTW_DELEGATE 1
-#endif
+/* #undef FFTW_DELEGATE */
/* Location of filter modules */
#ifndef MAGICKCORE_FILTER_PATH
#endif
/* Define if you have the <lcms2.h> header file. */
-/* #undef HAVE_LCMS2_H */
+#ifndef MAGICKCORE_HAVE_LCMS2_H
+#define MAGICKCORE_HAVE_LCMS2_H 1
+#endif
/* Define if you have the <lcms2/lcms2.h> header file. */
/* #undef HAVE_LCMS2_LCMS2_H */
/* Define if you have the <lcms.h> header file. */
-#ifndef MAGICKCORE_HAVE_LCMS_H
-#define MAGICKCORE_HAVE_LCMS_H 1
-#endif
+/* #undef HAVE_LCMS_H */
/* Define if you have the <lcms/lcms.h> header file. */
/* #undef HAVE_LCMS_LCMS_H */
#endif
/* Define if you have JBIG library */
-#ifndef MAGICKCORE_JBIG_DELEGATE
-#define MAGICKCORE_JBIG_DELEGATE 1
-#endif
+/* #undef JBIG_DELEGATE */
/* Define if you have JPEG version 2 "Jasper" library */
#ifndef MAGICKCORE_JP2_DELEGATE
#endif
/* Define if you have LQR library */
-#ifndef MAGICKCORE_LQR_DELEGATE
-#define MAGICKCORE_LQR_DELEGATE 1
-#endif
+/* #undef LQR_DELEGATE */
/* Define if using libltdl to support dynamically loadable modules */
#ifndef MAGICKCORE_LTDL_DELEGATE
/* Define to the system default library search path. */
#ifndef MAGICKCORE_LT_DLSEARCH_PATH
-#define MAGICKCORE_LT_DLSEARCH_PATH "/lib64:/usr/lib64:/lib:/usr/lib:/usr/lib64/R/lib:/usr/lib64/atlas:/opt/modules/pkg/intel/f77/10.0.025/lib:/usr/local/lib:/usr/lib64/mysql:/usr/lib64/qt-3.3/lib:/usr/lib64/xulrunner-2"
+#define MAGICKCORE_LT_DLSEARCH_PATH "/lib64:/usr/lib64:/lib:/usr/lib:/usr/lib64/atlas:/usr/lib64/mysql:/usr/lib64/qt-3.3/lib:/usr/lib64/tcl8.5/tclx8.4:/usr/lib64/tcl8.5:/usr/lib/wine/:/usr/lib64/wine/:/usr/lib64/xulrunner-2"
#endif
/* The archive extension */
/* #undef NO_MINUS_C_MINUS_O */
/* Define if you have OPENEXR library */
-#ifndef MAGICKCORE_OPENEXR_DELEGATE
-#define MAGICKCORE_OPENEXR_DELEGATE 1
-#endif
+/* #undef OPENEXR_DELEGATE */
/* Define to the address where bug reports for this package should be sent. */
#ifndef MAGICKCORE_PACKAGE_BUGREPORT
#endif
/* Define if you have RSVG library */
-#ifndef MAGICKCORE_RSVG_DELEGATE
-#define MAGICKCORE_RSVG_DELEGATE 1
-#endif
+/* #undef RSVG_DELEGATE */
/* Define to the type of arg 1 for `select'. */
#ifndef MAGICKCORE_SELECT_TYPE_ARG1
/* Define if you have WEBP library */
-#ifndef MAGICKCORE_WEBP_DELEGATE
-#define MAGICKCORE_WEBP_DELEGATE 1
-#endif
+/* #undef WEBP_DELEGATE */
/* Define to use the Windows GDI32 library */
/* #undef WINGDI32_DELEGATE */
/* #undef WITH_DMALLOC */
/* Define if you have WMF library */
-#ifndef MAGICKCORE_WMF_DELEGATE
-#define MAGICKCORE_WMF_DELEGATE 1
-#endif
+/* #undef WMF_DELEGATE */
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
if ( method == VoronoiMorphology ) {
/* Preserve the alpha channel of input image - but turned off */
- (void) SetImageAlphaChannel(rslt_image, DeactivateAlphaChannel);
+ (void) SetImageAlphaChannel(rslt_image, DeactivateAlphaChannel,
+ exception);
(void) CompositeImage(rslt_image, CopyOpacityCompositeOp, image, 0, 0);
- (void) SetImageAlphaChannel(rslt_image, DeactivateAlphaChannel);
+ (void) SetImageAlphaChannel(rslt_image, DeactivateAlphaChannel,
+ exception);
}
goto exit_cleanup;
}
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
if (image->matte == MagickFalse)
- (void) SetImageAlphaChannel(image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
/*
Set floodfill state.
*/
floodplane_image=CloneImage(image,0,0,MagickTrue,&image->exception);
if (floodplane_image == (Image *) NULL)
return(MagickFalse);
- (void) SetImageAlphaChannel(floodplane_image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(floodplane_image,OpaqueAlphaChannel,exception);
segment_stack=(SegmentInfo *) AcquireQuantumMemory(MaxStacksize,
sizeof(*segment_stack));
if (segment_stack == (SegmentInfo *) NULL)
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
if (image->matte == MagickFalse)
- (void) SetImageAlphaChannel(image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
/*
Make image color transparent.
*/
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
if (image->matte == MagickFalse)
- (void) SetImageAlphaChannel(image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
/*
Make image color transparent.
*/
if (quantum_map == (QuantumType *) NULL)
ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed",
image->filename);
+ exception=(&image->exception);
for (i=0; i < (ssize_t) length; i++)
{
switch (map[i])
case 'c':
{
quantum_map[i]=CyanQuantum;
- (void) SetImageColorspace(image,CMYKColorspace);
+ (void) SetImageColorspace(image,CMYKColorspace,exception);
break;
}
case 'g':
case 'k':
{
quantum_map[i]=BlackQuantum;
- (void) SetImageColorspace(image,CMYKColorspace);
+ (void) SetImageColorspace(image,CMYKColorspace,exception);
break;
}
case 'I':
case 'M':
{
quantum_map[i]=MagentaQuantum;
- (void) SetImageColorspace(image,CMYKColorspace);
+ (void) SetImageColorspace(image,CMYKColorspace,exception);
break;
}
case 'O':
case 'y':
{
quantum_map[i]=YellowQuantum;
- (void) SetImageColorspace(image,CMYKColorspace);
+ (void) SetImageColorspace(image,CMYKColorspace,exception);
break;
}
default:
{
quantum_map=(QuantumType *) RelinquishMagickMemory(quantum_map);
- (void) ThrowMagickException(&image->exception,GetMagickModule(),
- OptionError,"UnrecognizedPixelMap","`%s'",map);
+ (void) ThrowMagickException(exception,GetMagickModule(),OptionError,
+ "UnrecognizedPixelMap","`%s'",map);
return(MagickFalse);
}
}
}
- if (SetImageStorageClass(image,DirectClass,&image->exception) == MagickFalse)
+ if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
/*
Transfer the pixels from the pixel datarray to the image.
*/
- exception=(&image->exception);
switch (type)
{
case CharPixel:
ThrowBinaryException(severity,tag,context); \
}
+ ExceptionInfo
+ *exception;
+
MagickBooleanType
status;
if (image->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
assert(name != (const char *) NULL);
+ exception=(&image->exception);
if ((datum == (const void *) NULL) || (length == 0))
{
char
return(MagickTrue);
}
#if !defined(MAGICKCORE_LCMS_DELEGATE)
- (void) ThrowMagickException(&image->exception,GetMagickModule(),
- MissingDelegateWarning,"DelegateLibrarySupportNotBuiltIn","`%s' (LCMS)",
- image->filename);
+ (void) ThrowMagickException(GetMagickModule(),MissingDelegateWarning,
+ "DelegateLibrarySupportNotBuiltIn","`%s' (LCMS)",image->filename);
#else
{
cmsHPROFILE
source_type,
target_type;
- ExceptionInfo
- *exception;
-
int
intent;
**restrict source_pixels,
**restrict target_pixels;
- exception=(&image->exception);
target_profile=(cmsHPROFILE) NULL;
if (icc_profile != (StringInfo *) NULL)
{
return(MagickFalse);
}
if (target_colorspace == CMYKColorspace)
- (void) SetImageColorspace(image,target_colorspace);
+ (void) SetImageColorspace(image,target_colorspace,exception);
status=MagickTrue;
progress=0;
image_view=AcquireCacheView(image);
}
}
image_view=DestroyCacheView(image_view);
- (void) SetImageColorspace(image,target_colorspace);
+ (void) SetImageColorspace(image,target_colorspace,exception);
switch (signature)
{
case cmsSigRgbData:
value);
if (colorspace < 0)
break;
- (void) SetImageColorspace(image,(ColorspaceType) colorspace);
+ (void) SetImageColorspace(image,(ColorspaceType) colorspace,
+ exception);
break;
}
if (LocaleCompare(property,"compose") == 0)
return(thumbnail_image);
(void) ParseAbsoluteGeometry("0x0+0+0",&thumbnail_image->page);
if (thumbnail_image->matte == MagickFalse)
- (void) SetImageAlphaChannel(thumbnail_image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(thumbnail_image,OpaqueAlphaChannel,exception);
thumbnail_image->depth=8;
thumbnail_image->interlace=NoInterlace;
/*
return(integral_image);
}
if (integral_image->matte == MagickFalse)
- (void) SetImageAlphaChannel(integral_image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(integral_image,OpaqueAlphaChannel,exception);
/*
Compute image size.
*/
return(integral_image);
}
if (integral_image->matte == MagickFalse)
- (void) SetImageAlphaChannel(integral_image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(integral_image,OpaqueAlphaChannel,exception);
/*
Compute image size.
*/
Shear the image.
*/
if (shear_image->matte == MagickFalse)
- (void) SetImageAlphaChannel(shear_image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(shear_image,OpaqueAlphaChannel,exception);
status=XShearImage(shear_image,shear.x,image->columns,image->rows,x_offset,
(ssize_t) (shear_image->rows-image->rows)/2,exception);
if (status == MagickFalse)
break;
if (SetImageStorageClass(cmyk_image,DirectClass,exception) == MagickFalse)
break;
- (void) SetImageColorspace(cmyk_image,CMYKColorspace);
+ (void) SetImageColorspace(cmyk_image,CMYKColorspace,exception);
image_view=AcquireCacheView(images);
cmyk_view=AcquireCacheView(cmyk_image);
for (y=0; y < (ssize_t) images->rows; y++)
*/
#define MagickPackageName "ImageMagick"
#define MagickCopyright "Copyright (C) 1999-2011 ImageMagick Studio LLC"
-#define MagickSVNRevision "exported"
+#define MagickSVNRevision "4861"
#define MagickLibVersion 0x700
#define MagickLibVersionText "7.0.0"
#define MagickLibVersionNumber 5,0,0
#define MagickLibAddendum "-0"
#define MagickLibInterface 5
#define MagickLibMinInterface 5
-#define MagickReleaseDate "2011-08-04"
+#define MagickReleaseDate "2011-08-05"
#define MagickChangeDate "20110801"
#define MagickAuthoritativeURL "http://www.imagemagick.org"
#if defined(MAGICKCORE_OPENMP_SUPPORT)
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name);
if (wand->images == (Image *) NULL)
ThrowWandException(WandError,"ContainsNoImages",wand->name);
- return(SetImageAlphaChannel(wand->images,alpha_type));
+ return(SetImageAlphaChannel(wand->images,alpha_type,&wand->images->exception));
}
\f
/*
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name);
if (wand->images == (Image *) NULL)
ThrowWandException(WandError,"ContainsNoImages",wand->name);
- return(SetImageColorspace(wand->images,colorspace));
+ return(SetImageColorspace(wand->images,colorspace,&wand->images->exception));
}
\f
/*
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name);
if (wand->images == (Image *) NULL)
ThrowWandException(WandError,"ContainsNoImages",wand->name);
- return(SetImageExtent(wand->images,columns,rows));
+ return(SetImageExtent(wand->images,columns,rows,&wand->images->exception));
}
\f
/*
(void) SyncImageSettings(mogrify_info,*image);
alpha_type=(AlphaChannelType) ParseCommandOption(MagickAlphaOptions,
MagickFalse,argv[i+1]);
- (void) SetImageAlphaChannel(*image,alpha_type);
- InheritException(exception,&(*image)->exception);
+ (void) SetImageAlphaChannel(*image,alpha_type,exception);
break;
}
if (LocaleCompare("annotate",option+1) == 0)
if (LocaleCompare("matte",option+1) == 0)
{
(void) SetImageAlphaChannel(*image,(*option == '-') ?
- SetAlphaChannel : DeactivateAlphaChannel );
- InheritException(exception,&(*image)->exception);
+ SetAlphaChannel : DeactivateAlphaChannel,exception);
break;
}
if (LocaleCompare("median",option+1) == 0)
'AUTHOR' => 'ImageMagick Studio',
'NAME' => 'Image::Magick',
'VERSION_FROM' => 'Magick.pm', # finds $VERSION
- 'LIBS' => ['-L..\VisualMagick\lib -L..\VisualMagick\bin -lCORE_RL_magick_.lib -lCORE_DB_magick_.lib'],
+ 'LIBS' => ['-L..\VisualMagick\lib -L..\VisualMagick\bin -lCORE_RL_MagickCore_.lib -lCORE_DB_MagickCore_.lib'],
'DEFINE' => '-D_VISUALC_ -D_WINDOWS', # e.g., '-DHAVE_SOMETHING'
'INC' => '-I.. -I..\xlib\include',
'BINARY_LOCATION' => 'x86/Image-Magick.tar.gz',
(void) TransformImageColorspace(image,RGBColorspace);
if ((LocaleCompare(image_info->magick,"BGRA") == 0) &&
(image->matte == MagickFalse))
- (void) SetImageAlphaChannel(image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,&image->exception);
quantum_info=AcquireQuantumInfo(image_info,image);
if (quantum_info == (QuantumInfo *) NULL)
ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed");
(void) TransformImageColorspace(image,CMYKColorspace);
if ((LocaleCompare(image_info->magick,"CMYKA") == 0) &&
(image->matte == MagickFalse))
- (void) SetImageAlphaChannel(image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,&image->exception);
quantum_info=AcquireQuantumInfo(image_info,image);
if (quantum_info == (QuantumInfo *) NULL)
ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed");
(void) SetImageStorageClass(image,DirectClass,&image->exception);
if (IsImageGray(image,&image->exception) != MagickFalse)
{
- image->storage_class=DirectClass;
- (void) SetImageColorspace(image,GRAYColorspace);
+ (void) SetImageStorageClass(image,DirectClass,&image->exception);
+ (void) SetImageColorspace(image,GRAYColorspace,&image->exception);
}
compression=image->compression;
if (image_info->compression != UndefinedCompression)
if (alpha < 0)
ThrowMSLException(OptionError,"UnrecognizedType",value);
if (image != (Image *) NULL)
- (void) SetImageAlphaChannel(image,(AlphaChannelType) alpha);
+ (void) SetImageAlphaChannel(image,(AlphaChannelType) alpha,
+ exception);
break;
}
if (LocaleCompare(keyword,"antialias") == 0)
(double) MagickMax(image->rows,tile_image->rows));
(void) SetImageExtent(image,
MagickMax(image->columns,tile_image->columns),
- MagickMax(image->rows,tile_image->rows));
+ MagickMax(image->rows,tile_image->rows),exception);
if (IsRGBColorspace(image->colorspace) == MagickFalse)
(void) TransformImageColorspace(image,tile_image->colorspace);
(void) CompositeImage(image,CopyCompositeOp,tile_image,frame.left,
if (status == MagickFalse)
break;
}
- (void) SetImageAlphaChannel(image,DeactivateAlphaChannel);
+ (void) SetImageAlphaChannel(image,DeactivateAlphaChannel,exception);
return(GetFirstImageInList(image));
}
\f
(void) TransformImageColorspace(image,RGBColorspace);
if ((LocaleCompare(image_info->magick,"RGBA") == 0) &&
(image->matte == MagickFalse))
- (void) SetImageAlphaChannel(image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,&image->exception);
quantum_info=AcquireQuantumInfo(image_info,image);
if (quantum_info == (QuantumInfo *) NULL)
ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed");
(void) TransformImageColorspace(image,YCbCrColorspace);
if ((LocaleCompare(image_info->magick,"YCbCrA") == 0) &&
(image->matte == MagickFalse))
- (void) SetImageAlphaChannel(image,OpaqueAlphaChannel);
+ (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,&image->exception);
quantum_info=AcquireQuantumInfo(image_info,image);
if (quantum_info == (QuantumInfo *) NULL)
ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed");
<configure name="LIB_VERSION" value="0x700"/>
<configure name="LIB_VERSION_NUMBER" value="7,0,0,0"/>
<configure name="SVN_REVISION" value="4861" />
- <configure name="RELEASE_DATE" value="2011-08-02"/>
+ <configure name="RELEASE_DATE" value="2011-08-05"/>
<configure name="CONFIGURE" value="./configure "/>
<configure name="PREFIX" value="/usr/local"/>
<configure name="EXEC-PREFIX" value="/usr/local"/>