*/
(void) SyncImageSettings(mogrify_info,*image);
(void) BlackThresholdImage(*image,argv[i+1],exception);
- InheritException(exception,&(*image)->exception);
break;
}
if (LocaleCompare("blue-shift",option+1) == 0)
contrast=geometry_info.sigma;
(void) BrightnessContrastImage(*image,brightness,contrast,
exception);
- InheritException(exception,&(*image)->exception);
break;
}
break;
break;
(void) ColorDecisionListImage(*image,color_correction_collection,
exception);
- InheritException(exception,&(*image)->exception);
break;
}
if (LocaleCompare("channel",option+1) == 0)
mask_view=DestroyCacheView(mask_view);
mask_image->matte=MagickTrue;
(void) SetImageClipMask(*image,mask_image,exception);
- InheritException(exception,&(*image)->exception);
break;
}
if (LocaleCompare("clip-path",option+1) == 0)
white_point;
(void) ContrastStretchImage(*image,black_point,white_point,
exception);
- InheritException(exception,&(*image)->exception);
break;
}
if (LocaleCompare("convolve",option+1) == 0)
else
(void) LevelImage(*image,black_point,white_point,gamma,
exception);
- InheritException(exception,&(*image)->exception);
break;
}
if (LocaleCompare("level-colors",option+1) == 0)
white_point=(MagickRealType) (*image)->columns*(*image)->rows-
black_point;
(void) LinearStretchImage(*image,black_point,white_point,exception);
- InheritException(exception,&(*image)->exception);
break;
}
if (LocaleCompare("linewidth",option+1) == 0)
break;
}
(void) ResetImagePage(*image,argv[i+1]);
- InheritException(exception,&(*image)->exception);
break;
}
if (LocaleCompare("resample",option+1) == 0)
else
threshold=SiPrefixToDouble(argv[i+1],QuantumRange);
(void) BilevelImage(*image,threshold,exception);
- InheritException(exception,&(*image)->exception);
break;
}
if (LocaleCompare("thumbnail",option+1) == 0)
exception);
(void) TransparentPaintImage(*image,&target,(Quantum)
TransparentAlpha,*option == '-' ? MagickFalse : MagickTrue,
- &(*image)->exception);
+ exception);
break;
}
if (LocaleCompare("transpose",option+1) == 0)
*/
(void) SyncImageSettings(mogrify_info,*image);
(void) WhiteThresholdImage(*image,argv[i+1],exception);
- InheritException(exception,&(*image)->exception);
break;
}
break;
quantize_info=DestroyQuantizeInfo(quantize_info);
draw_info=DestroyDrawInfo(draw_info);
mogrify_info=DestroyImageInfo(mogrify_info);
- status=(MagickStatusType) ((*image)->exception.severity ==
- UndefinedException ? 1 : 0);
+ status=(MagickStatusType) (exception->severity == UndefinedException ? 1 : 0);
return(status == 0 ? MagickFalse : MagickTrue);
}
\f
if (mask_image != (Image *) NULL)
mask_image=image->mask=DestroyImage(image->mask);
composite_image=DestroyImage(composite_image);
- InheritException(exception,&image->exception);
*images=DestroyImageList(*images);
*images=image;
break;
}
if (layers == (Image *) NULL)
break;
- InheritException(exception,&layers->exception);
*images=DestroyImageList(*images);
*images=layers;
break;
if (LocaleCompare("reverse",option+1) == 0)
{
ReverseImageList(images);
- InheritException(exception,&(*images)->exception);
break;
}
break;
{
(void) SyncImageSettings(image_info,*image);
(void) BlackThresholdImage(*image,argv[1],exception);
- InheritException(exception,&(*image)->exception);
break;
}
if (LocaleCompare("blue-shift",argv[0]+1) == 0)
contrast=geometry_info.sigma;
(void) BrightnessContrastImage(*image,brightness,contrast,
exception);
- InheritException(exception,&(*image)->exception);
break;
}
break;
break;
(void) ColorDecisionListImage(*image,color_correction_collection,
exception);
- InheritException(exception,&(*image)->exception);
break;
}
if (LocaleCompare("channel",argv[0]+1) == 0)
mask_image->matte=MagickTrue;
(void) SetImageClipMask(*image,mask_image,exception);
mask_image=DestroyImage(mask_image);
- InheritException(exception,&(*image)->exception);
break;
}
if (LocaleCompare("clip-path",argv[0]+1) == 0)
white_point;
(void) ContrastStretchImage(*image,black_point,white_point,
exception);
- InheritException(exception,&(*image)->exception);
break;
}
if (LocaleCompare("convolve",argv[0]+1) == 0)
else
(void) LevelImage(*image,black_point,white_point,gamma,
exception);
- InheritException(exception,&(*image)->exception);
break;
}
if (LocaleCompare("level-colors",argv[0]+1) == 0)
white_point=(MagickRealType) (*image)->columns*(*image)->rows-
black_point;
(void) LinearStretchImage(*image,black_point,white_point,exception);
- InheritException(exception,&(*image)->exception);
break;
}
if (LocaleCompare("linewidth",argv[0]+1) == 0)
break;
}
(void) ResetImagePage(*image,argv[1]);
- InheritException(exception,&(*image)->exception);
break;
}
if (LocaleCompare("resample",argv[0]+1) == 0)
exception);
(void) TransparentPaintImage(*image,&target,(Quantum)
TransparentAlpha,*argv[0] == '-' ? MagickFalse : MagickTrue,
- &(*image)->exception);
+ exception);
break;
}
if (LocaleCompare("transpose",argv[0]+1) == 0)
*/
(void) SyncImageSettings(image_info,*image);
(void) WhiteThresholdImage(*image,argv[1],exception);
- InheritException(exception,&(*image)->exception);
break;
}
break;
*/
quantize_info=DestroyQuantizeInfo(quantize_info);
draw_info=DestroyDrawInfo(draw_info);
- status=(MagickStatusType) ((*image)->exception.severity ==
- UndefinedException ? 1 : 0);
+ status=(MagickStatusType) (exception->severity == UndefinedException ? 1 : 0);
return(status == 0 ? MagickFalse : MagickTrue);
}
\f
}
if (layers == (Image *) NULL)
break;
- InheritException(exception,&layers->exception);
*images=DestroyImageList(*images);
*images=layers;
break;
if (LocaleCompare("reverse",argv[0]+1) == 0)
{
ReverseImageList(images);
- InheritException(exception,&(*images)->exception);
break;
}
break;
}
quantize_info=DestroyQuantizeInfo(quantize_info);
- status=(MagickStatusType) ((*image)->exception.severity ==
- UndefinedException ? 1 : 0);
+ status=(MagickStatusType) (exception->severity == UndefinedException ? 1 : 0);
return(status != 0 ? MagickTrue : MagickFalse);
}
#endif
count=0;
for ( ; image; image=image->next)
{
- channel_features=GetImageFeatures(image,distance,
- &image->exception);
+ channel_features=GetImageFeatures(image,distance,exception);
if (channel_features == (ChannelFeatures *) NULL)
continue;
count++;
if (image == (Image *) NULL)
break;
- page=GetImageBoundingBox(image,&image->exception);
+ page=GetImageBoundingBox(image,exception);
(void) FormatLocaleString(geometry,MaxTextExtent,
"%.20gx%.20g%+.20g%+.20g",(double) page.width,(double)
page.height,(double) page.x,(double) page.y);
{
if (image != (Image *) NULL)
s=newSViv((ssize_t) GetNumberColors(image,(FILE *) NULL,
- &image->exception));
+ exception));
PUSHs(s ? sv_2mortal(s) : &sv_undef);
continue;
}
{
s=newSViv(MAGICKCORE_QUANTUM_DEPTH);
if (image != (Image *) NULL)
- s=newSViv((ssize_t) GetImageDepth(image,&image->exception));
+ s=newSViv((ssize_t) GetImageDepth(image,exception));
PUSHs(s ? sv_2mortal(s) : &sv_undef);
continue;
}
if (info && (*info->image_info->magick != '\0'))
magick_info=GetMagickInfo(info->image_info->magick,exception);
if (image != (Image *) NULL)
- magick_info=GetMagickInfo(image->magick,&image->exception);
+ magick_info=GetMagickInfo(image->magick,exception);
if ((magick_info != (const MagickInfo *) NULL) &&
(*magick_info->description != '\0'))
s=newSVpv((char *) magick_info->description,0);
(void) FormatLocaleString(key,MaxTextExtent,"%.20g\n",(double)
id);
status=SetImageRegistry(ImageRegistryType,key,image,
- &image->exception);
+ exception);
(void) status;
s=newSViv(id++);
}
items=sscanf(attribute,"%*[^[][%ld%*[,/]%ld",&x,&y);
(void) items;
image_view=AcquireCacheView(image);
- p=GetCacheViewVirtualPixels(image_view,x,y,1,1,&image->exception);
+ p=GetCacheViewVirtualPixels(image_view,x,y,1,1,exception);
if (p != (const Quantum *) NULL)
{
(void) FormatLocaleString(name,MaxTextExtent,QuantumFormat,
if (image == (Image *) NULL)
continue;
j=info ? info->image_info->monochrome :
- IsImageMonochrome(image,&image->exception);
+ IsImageMonochrome(image,exception);
s=newSViv(j);
PUSHs(s ? sv_2mortal(s) : &sv_undef);
continue;
{
if (image == (Image *) NULL)
break;
- j=(ssize_t) GetImageType(image,&image->exception);
+ j=(ssize_t) GetImageType(image,exception);
s=newSViv(j);
(void) sv_setpv(s,CommandOptionToMnemonic(MagickTypeOptions,j));
SvIOK_on(s);
count=0;
for ( ; image; image=image->next)
{
- histogram=GetImageHistogram(image,&number_colors,&image->exception);
+ histogram=GetImageHistogram(image,&number_colors,exception);
if (histogram == (PixelInfo *) NULL)
continue;
count+=(ssize_t) number_colors;
next->scene=scene++;
}
SetImageInfo(package_info->image_info,(unsigned int)
- GetImageListLength(image),&image->exception);
+ GetImageListLength(image),exception);
EXTEND(sp,(ssize_t) GetImageListLength(image));
for ( ; image; image=image->next)
{
case OptimizeTransLayer:
{
OptimizeImageTransparency(image,exception);
- InheritException(&(image->exception),exception);
break;
}
case RemoveDupsLayer:
{
RemoveDuplicateLayers(&image,exception);
- InheritException(&(image->exception),exception);
break;
}
case RemoveZeroLayer:
{
RemoveZeroDelayLayers(&image,exception);
- InheritException(&(image->exception),exception);
break;
}
case OptimizeLayer:
image=layers;
layers=(Image *) NULL;
OptimizeImageTransparency(image,exception);
- InheritException(&(image->exception),exception);
quantize_info=AcquireQuantizeInfo(info->image_info);
(void) RemapImages(quantize_info,image,(Image *) NULL,exception);
quantize_info=DestroyQuantizeInfo(quantize_info);
image->rows,image->gravity,&geometry);
CompositeLayers(image,compose,source,geometry.x,geometry.y,exception);
source=DestroyImageList(source);
- InheritException(&(image->exception),exception);
break;
}
}
Merge Y displacement into X displacement image.
*/
composite_image=CloneImage(composite_image,0,0,MagickTrue,
- &image->exception);
+ exception);
(void) CompositeImage(composite_image,CopyGreenCompositeOp,
argument_list[10].image_reference,0,0,exception);
}
Set a blending mask for the composition.
*/
image->mask=CloneImage(argument_list[10].image_reference,0,0,
- MagickTrue,&image->exception);
+ MagickTrue,exception);
(void) NegateImage(image->mask,MagickFalse,exception);
}
}
profile_info=
CloneImageInfo(info ? info->image_info : (ImageInfo *) NULL);
(void) CopyMagickString(profile_info->filename,name,MaxTextExtent);
- profile_image=ReadImages(profile_info,&image->exception);
+ profile_image=ReadImages(profile_info,exception);
if (profile_image == (Image *) NULL)
break;
ResetImageProfileIterator(profile_image);
info=GetPackageInfo(aTHX_ (void *) av,info,exception);
(void) CopyMagickString(info->image_info->filename,image->filename,
MaxTextExtent);
- SetImageInfo(info->image_info,0,&image->exception);
+ SetImageInfo(info->image_info,0,exception);
exception=DestroyExceptionInfo(exception);
SvREFCNT_dec(perl_exception);
XSRETURN(1);
{
if (info)
(void) QueryColorCompliance(SvPV(ST(i),na),AllCompliance,
- &draw_info->fill,&image->exception);
+ &draw_info->fill,exception);
break;
}
if (LocaleCompare(attribute,"font") == 0)
{
if (info)
(void) QueryColorCompliance(SvPV(ST(i),na),AllCompliance,
- &draw_info->stroke,&image->exception);
+ &draw_info->stroke,exception);
break;
}
if (LocaleCompare(attribute,"style") == 0)
{
if (info)
(void) QueryColorCompliance(SvPV(ST(i),na),AllCompliance,
- &draw_info->fill,&image->exception);
+ &draw_info->fill,exception);
break;
}
if (LocaleCompare(attribute,"font") == 0)
{
if (info)
(void) QueryColorCompliance(SvPV(ST(i),na),AllCompliance,
- &draw_info->stroke,&image->exception);
+ &draw_info->stroke,exception);
break;
}
if (LocaleCompare(attribute,"style") == 0)
count=0;
for ( ; image; image=image->next)
{
- channel_statistics=GetImageStatistics(image,&image->exception);
+ channel_statistics=GetImageStatistics(image,exception);
if (channel_statistics == (ChannelStatistics *) NULL)
continue;
count++;
status=SyncAuthenticPixels(image,exception);
if (status != MagickFalse)
return;
- InheritException(exception,&image->exception);
PerlException:
InheritPerlException(exception,perl_exception);
next->scene=scene++;
}
SetImageInfo(package_info->image_info,(unsigned int)
- GetImageListLength(image),&image->exception);
+ GetImageListLength(image),exception);
for (next=image; next; next=next->next)
{
(void) WriteImage(package_info->image_info,next,exception);