modifyImage();
EqualizeImage( image(), &exceptionInfo );
throwException( exceptionInfo );
+ (void) DestroyExceptionInfo( &exceptionInfo );
}
// Erase image to current "background color"
void Magick::Image::erase ( void )
{
modifyImage();
- SetImageBackgroundColor( image() );
- throwImageException();
+ ExceptionInfo exceptionInfo;
+ GetExceptionInfo( &exceptionInfo );
+ SetImageBackgroundColor( image(), &exceptionInfo );
+ throwException( exceptionInfo );
+ (void) DestroyExceptionInfo( &exceptionInfo );
}
// Extends image as defined by the geometry.
(MagickBooleanType) options()->verbose(),
clusterThreshold_,
smoothingThreshold_, &exceptionInfo );
+ SyncImage( image(), &exceptionInfo );
throwException( exceptionInfo );
(void) DestroyExceptionInfo( &exceptionInfo );
- SyncImage( image() );
}
// Shade image using distant light source
// Use SyncImage to synchronize the DirectClass pixels with the
// color map and then set to DirectClass type.
modifyImage();
- SyncImage( image() );
+ ExceptionInfo exceptionInfo;
+ GetExceptionInfo( &exceptionInfo );
+ SyncImage( image(), &exceptionInfo );
+ throwException( exceptionInfo );
+ (void) DestroyExceptionInfo( &exceptionInfo );
image()->colormap = (PixelInfo *)
RelinquishMagickMemory( image()->colormap );
image()->storage_class = static_cast<MagickCore::ClassType>(DirectClass);
while( image )
{
// Calculate quantization error
+ MagickCore::ExceptionInfo exceptionInfo;
+ MagickCore::GetExceptionInfo( &exceptionInfo );
if ( measureError_ )
{
- MagickCore::ExceptionInfo exceptionInfo;
- MagickCore::GetExceptionInfo( &exceptionInfo );
MagickCore::GetImageQuantizeError( image, &exceptionInfo );
if ( exceptionInfo.severity > MagickCore::UndefinedException )
{
unlinkImages( first_, last_ );
throwException( exceptionInfo );
}
- (void) MagickCore::DestroyExceptionInfo( &exceptionInfo );
}
// Udate DirectClass representation of pixels
- MagickCore::SyncImage( image );
+ MagickCore::SyncImage( image, &exceptionInfo );
if ( image->exception.severity > MagickCore::UndefinedException )
{
unlinkImages( first_, last_ );
throwException( exceptionInfo );
}
+ (void) MagickCore::DestroyExceptionInfo( &exceptionInfo );
// Next image
image=image->next;
MagickCore::GetImageQuantizeError( image, &exceptionInfo );
// Update DirectClass representation of pixels
- MagickCore::SyncImage( image );
+ MagickCore::SyncImage( image, &exceptionInfo );
// Next image
image=image->next;
*/
if (image->storage_class == PseudoClass)
{
- if (SyncImage(image) == MagickFalse)
+ if (SyncImage(image,exception) == MagickFalse)
return(MagickFalse);
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
*/
if (image->storage_class == PseudoClass)
{
- if (SyncImage(image) == MagickFalse)
+ if (SyncImage(image,exception) == MagickFalse)
return(MagickFalse);
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
*/
if (image->storage_class == PseudoClass)
{
- if (SyncImage(image) == MagickFalse)
+ if (SyncImage(image,exception) == MagickFalse)
return(MagickFalse);
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
*/
if (image->storage_class == PseudoClass)
{
- if (SyncImage(image) == MagickFalse)
+ if (SyncImage(image,exception) == MagickFalse)
return(MagickFalse);
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
*/
if (image->storage_class == PseudoClass)
{
- if (SyncImage(image) == MagickFalse)
+ if (SyncImage(image,exception) == MagickFalse)
return(MagickFalse);
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
*/
if (image->storage_class == PseudoClass)
{
- if (SyncImage(image) == MagickFalse)
+ if (SyncImage(image,exception) == MagickFalse)
return(MagickFalse);
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
image->colormap[i].blue=ScaleMapToQuantum(pixel.blue);
}
image_view=DestroyCacheView(image_view);
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
break;
}
}
*/
if (image->storage_class == PseudoClass)
{
- if (SyncImage(image) == MagickFalse)
+ if (SyncImage(image,exception) == MagickFalse)
return(MagickFalse);
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
*/
if (image->storage_class == PseudoClass)
{
- if (SyncImage(image) == MagickFalse)
+ if (SyncImage(image,exception) == MagickFalse)
return(MagickFalse);
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
*/
if (image->storage_class == PseudoClass)
{
- if (SyncImage(image) == MagickFalse)
+ if (SyncImage(image,exception) == MagickFalse)
return(MagickFalse);
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
*/
if (image->storage_class == PseudoClass)
{
- if (SyncImage(image) == MagickFalse)
+ if (SyncImage(image,exception) == MagickFalse)
return(MagickFalse);
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
*/
if (image->storage_class == PseudoClass)
{
- if (SyncImage(image) == MagickFalse)
+ if (SyncImage(image,exception) == MagickFalse)
return(MagickFalse);
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
*/
if (image->storage_class == PseudoClass)
{
- if (SyncImage(image) == MagickFalse)
+ if (SyncImage(image,exception) == MagickFalse)
return(MagickFalse);
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
}
}
image_view=DestroyCacheView(image_view);
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
break;
}
}
ThrowImageException(OptionError,"NonZeroWidthAndHeightRequired");
image->columns=columns;
image->rows=rows;
- (void) SetImageBackgroundColor(image);
+ (void) SetImageBackgroundColor(image,exception);
status=ImportImagePixels(image,0,0,columns,rows,map,storage,pixels,exception);
if (status == MagickFalse)
image=DestroyImage(image);
(*image)->colormap[i].blue=ScaleShortToQuantum(
color.blue);
}
- (void) SyncImage(*image);
+ (void) SyncImage(*image,exception);
}
break;
}
*clip_mask;
clip_mask=CloneImage(image,image->columns,image->rows,MagickTrue,
- &image->exception);
+ exception);
if (clip_mask == (Image *) NULL)
return(MagickFalse);
(void) SetImageClipMask(image,clip_mask,exception);
clip_mask=DestroyImage(clip_mask);
}
(void) QueryColorCompliance("#00000000",AllCompliance,
- &image->clip_mask->background_color,&image->exception);
+ &image->clip_mask->background_color,exception);
image->clip_mask->background_color.alpha=(Quantum) TransparentAlpha;
- (void) SetImageBackgroundColor(image->clip_mask);
+ (void) SetImageBackgroundColor(image->clip_mask,exception);
if (image->debug != MagickFalse)
(void) LogMagickEvent(DrawEvent,GetMagickModule(),"\nbegin clip-path %s",
draw_info->clip_mask);
clone_info=CloneDrawInfo((ImageInfo *) NULL,draw_info);
(void) CloneString(&clone_info->primitive,value);
(void) QueryColorCompliance("#ffffff",AllCompliance,&clone_info->fill,
- &image->exception);
+ exception);
clone_info->clip_mask=(char *) NULL;
status=DrawImage(image->clip_mask,clone_info,exception);
- status|=NegateImage(image->clip_mask,MagickFalse,&image->exception);
+ status|=NegateImage(image->clip_mask,MagickFalse,exception);
clone_info=DestroyDrawInfo(clone_info);
if (image->debug != MagickFalse)
(void) LogMagickEvent(DrawEvent,GetMagickModule(),"end clip-path");
*pattern=AcquireImage(image_info,&image->exception);
image_info=DestroyImageInfo(image_info);
(void) QueryColorCompliance("#00000000",AllCompliance,
- &(*pattern)->background_color,&image->exception);
- (void) SetImageBackgroundColor(*pattern);
+ &(*pattern)->background_color,exception);
+ (void) SetImageBackgroundColor(*pattern,exception);
if (image->debug != MagickFalse)
(void) LogMagickEvent(DrawEvent,GetMagickModule(),
"begin pattern-path %s %s",name,geometry);
else
{
caption_image->background_color=image->border_color;
- (void) SetImageBackgroundColor(caption_image);
+ (void) SetImageBackgroundColor(caption_image,exception);
(void) CloneString(&annotate_info->text,caption);
(void) FormatLocaleString(geometry,MaxTextExtent,"+0+%g",
metrics.ascent);
return((Image *) NULL);
}
picture_image->background_color=image->border_color;
- (void) SetImageBackgroundColor(picture_image);
+ (void) SetImageBackgroundColor(picture_image,exception);
(void) CompositeImage(picture_image,OverCompositeOp,image,quantum,quantum,
exception);
if (caption_image != (Image *) NULL)
/*
Shadow image.
*/
- (void) SetImageBackgroundColor(border_image);
+ (void) SetImageBackgroundColor(border_image,exception);
channel_mask=SetPixelChannelMask(border_image,AlphaChannel);
shadow_image=BlurImage(border_image,0.0,sigma,image->bias,exception);
(void) SetPixelChannelMap(border_image,channel_mask);
stegano_view=DestroyCacheView(stegano_view);
watermark_view=DestroyCacheView(watermark_view);
if (stegano_image->storage_class == PseudoClass)
- (void) SyncImage(stegano_image);
+ (void) SyncImage(stegano_image,exception);
if (status == MagickFalse)
{
stegano_image=DestroyImage(stegano_image);
}
(void) QueryColorCompliance("#000000",AllCompliance,
&oval_image->background_color,exception);
- (void) SetImageBackgroundColor(oval_image);
+ (void) SetImageBackgroundColor(oval_image,exception);
draw_info=CloneDrawInfo((const ImageInfo *) NULL,(const DrawInfo *) NULL);
(void) QueryColorCompliance("#ffffff",AllCompliance,&draw_info->fill,
exception);
return((Image *) NULL);
}
append_image->matte=matte;
- (void) SetImageBackgroundColor(append_image);
+ (void) SetImageBackgroundColor(append_image,exception);
status=MagickTrue;
x_offset=0;
y_offset=0;
return(MagickFalse);
if (clip_mask->storage_class == PseudoClass)
{
- (void) SyncImage(clip_mask);
+ (void) SyncImage(clip_mask,exception);
if (SetImageStorageClass(clip_mask,DirectClass,&image->exception) == MagickFalse)
return(MagickFalse);
}
image->fuzz=background->fuzz;
image->depth=background->depth;
status=MagickTrue;
- exception=(&image->exception);
image_view=AcquireCacheView(image);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(dynamic,4) shared(status)
%
% The format of the SetImage method is:
%
-% MagickBooleanType SetImageBackgroundColor(Image *image)
+% MagickBooleanType SetImageBackgroundColor(Image *image,
+% ExceptionInfo *exception)
%
% A description of each parameter follows:
%
% o image: the image.
%
+% o exception: return any errors or warnings in this structure.
+%
*/
-MagickExport MagickBooleanType SetImageBackgroundColor(Image *image)
+MagickExport MagickBooleanType SetImageBackgroundColor(Image *image,
+ ExceptionInfo *exception)
{
CacheView
*image_view;
- ExceptionInfo
- *exception;
-
MagickBooleanType
status;
if (image->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"...");
assert(image->signature == MagickSignature);
- exception=(&image->exception);
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
if (image->background_color.alpha != OpaqueAlpha)
return((Image *) NULL);
}
smush_image->matte=matte;
- (void) SetImageBackgroundColor(smush_image);
+ (void) SetImageBackgroundColor(smush_image,exception);
status=MagickTrue;
x_offset=0;
y_offset=0;
%
% The format of the SyncImage method is:
%
-% MagickBooleanType SyncImage(Image *image)
+% MagickBooleanType SyncImage(Image *image,ExceptionInfo *exception)
%
% A description of each parameter follows:
%
% o image: the image.
%
+% o exception: return any errors or warnings in this structure.
+%
*/
static inline Quantum PushColormapIndex(Image *image,
return((Quantum) 0);
}
-MagickExport MagickBooleanType SyncImage(Image *image)
+MagickExport MagickBooleanType SyncImage(Image *image,ExceptionInfo *exception)
{
CacheView
*image_view;
- ExceptionInfo
- *exception;
-
MagickBooleanType
range_exception,
status;
return(MagickFalse);
range_exception=MagickFalse;
status=MagickTrue;
- exception=(&image->exception);
image_view=AcquireCacheView(image);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
#pragma omp parallel for schedule(dynamic,4) shared(status)
SeparateImage(Image *,ExceptionInfo *),
SetImageAlpha(Image *,const Quantum,ExceptionInfo *),
SetImageAlphaChannel(Image *,const AlphaChannelType,ExceptionInfo *),
- SetImageBackgroundColor(Image *),
+ SetImageBackgroundColor(Image *,ExceptionInfo *),
SetImageClipMask(Image *,const Image *,ExceptionInfo *),
SetImageColor(Image *,const PixelInfo *,ExceptionInfo *),
SetImageExtent(Image *,const size_t,const size_t,ExceptionInfo *),
SetImageStorageClass(Image *,const ClassType,ExceptionInfo *),
SetImageType(Image *,const ImageType,ExceptionInfo *),
StripImage(Image *,ExceptionInfo *),
- SyncImage(Image *),
+ SyncImage(Image *,ExceptionInfo *),
SyncImageSettings(const ImageInfo *,Image *),
SyncImagesSettings(ImageInfo *,Image *);
coalesce_image->page=bounds;
coalesce_image->dispose=NoneDispose;
coalesce_image->background_color.alpha=(Quantum) TransparentAlpha;
- (void) SetImageBackgroundColor(coalesce_image);
+ (void) SetImageBackgroundColor(coalesce_image,exception);
/*
Coalesce rest of the images.
*/
dispose_image->page.y=0;
dispose_image->dispose=NoneDispose;
dispose_image->background_color.alpha=(Quantum) TransparentAlpha;
- (void) SetImageBackgroundColor(dispose_image);
+ (void) SetImageBackgroundColor(dispose_image,exception);
dispose_images=NewImageList();
for ( ; curr != (Image *) NULL; curr=GetNextImageInList(curr))
{
return((Image *) NULL);
}
image_a->background_color.alpha=(Quantum) TransparentAlpha;
- (void) SetImageBackgroundColor(image_a);
+ (void) SetImageBackgroundColor(image_a,exception);
image_a->page=next->page;
image_a->page.x=0;
image_a->page.y=0;
prev_image->dispose=NoneDispose;
prev_image->background_color.alpha=(Quantum) TransparentAlpha;
- (void) SetImageBackgroundColor(prev_image);
+ (void) SetImageBackgroundColor(prev_image,exception);
/*
Figure out the area of overlay of the first frame
No pixel could be cleared as all pixels are already cleared.
dispose_image->page.y=0;
dispose_image->dispose=NoneDispose;
dispose_image->background_color.alpha=(Quantum) TransparentAlpha;
- (void) SetImageBackgroundColor(dispose_image);
+ (void) SetImageBackgroundColor(dispose_image,exception);
while ( next != (Image *) NULL )
{
canvas=CloneImage(image,width,height,MagickTrue,exception);
if (canvas == (Image *) NULL)
return((Image *) NULL);
- (void) SetImageBackgroundColor(canvas);
+ (void) SetImageBackgroundColor(canvas,exception);
canvas->page=page;
canvas->dispose=UndefinedDispose;
MaxTextExtent);
montage->columns=MagickMax(bounds.width,1);
montage->rows=MagickMax(bounds.height,1);
- (void) SetImageBackgroundColor(montage);
+ (void) SetImageBackgroundColor(montage,exception);
/*
Set montage geometry.
*/
q++;
}
}
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
if ((cube_info->quantize_info->colorspace != UndefinedColorspace) &&
(cube_info->quantize_info->colorspace != CMYKColorspace))
(void) TransformImageColorspace((Image *) image,RGBColorspace,exception);
}
}
image_view=DestroyCacheView(image_view);
- status&=SyncImage(image);
+ status&=SyncImage(image,exception);
/*
Relinquish resources.
*/
q->alpha=ClampToUnsignedQuantum(q->alpha);
q++;
}
- return(SyncImage(image));
+ return(SyncImage(image,exception));
}
/*
Clamp image.
if (crop_image == (Image *) NULL)
return((Image *) NULL);
crop_image->background_color.alpha=(Quantum) TransparentAlpha;
- (void) SetImageBackgroundColor(crop_image);
+ (void) SetImageBackgroundColor(crop_image,exception);
crop_image->page=bounding_box;
crop_image->page.x=(-1);
crop_image->page.y=(-1);
}
if (extent_image->background_color.alpha != OpaqueAlpha)
extent_image->matte=MagickTrue;
- (void) SetImageBackgroundColor(extent_image);
+ (void) SetImageBackgroundColor(extent_image,exception);
(void) CompositeImage(extent_image,image->compose,image,-geometry->x,
-geometry->y,exception);
return(extent_image);
splice_image=DestroyImage(splice_image);
return((Image *) NULL);
}
- (void) SetImageBackgroundColor(splice_image);
+ (void) SetImageBackgroundColor(splice_image,exception);
/*
Respect image geometry.
*/
if (crop_image == (Image *) NULL)
return((Image *) NULL);
crop_image->background_color.alpha=(Quantum) TransparentAlpha;
- (void) SetImageBackgroundColor(crop_image);
+ (void) SetImageBackgroundColor(crop_image,exception);
crop_image->page=image->page;
crop_image->page.x=(-1);
crop_image->page.y=(-1);
#define MagickLibAddendum "-0"
#define MagickLibInterface 7
#define MagickLibMinInterface 7
-#define MagickReleaseDate "2011-10-19"
+#define MagickReleaseDate "2011-10-20"
#define MagickChangeDate "20110801"
#define MagickAuthoritativeURL "http://www.imagemagick.org"
#if defined(MAGICKCORE_OPENMP_SUPPORT)
(index >= wand->images->colors))
ThrowWandException(WandError,"InvalidColormapIndex",wand->name);
PixelGetQuantumPacket(color,wand->images->colormap+index);
- return(SyncImage(wand->images));
+ return(SyncImage(wand->images,wand->exception));
}
\f
/*
}
case 53: /* Sync */
{
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
break;
}
case 54: /* Texture */
break;
}
}
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
break;
}
case 4:
break;
}
}
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
break;
}
case 8:
break;
}
}
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
break;
}
case 16:
if (image->rows == 0)
image->rows=(size_t) ((i+1)*draw_info->pointsize+
draw_info->interline_spacing+draw_info->stroke_width+0.5);
- if (SetImageBackgroundColor(image) == MagickFalse)
+ if (SetImageBackgroundColor(image,exception) == MagickFalse)
{
InheritException(exception,&image->exception);
image=DestroyImageList(image);
InsertRow(depth,BImgBuff,i,image);
}
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
/*detect monochrome image*/
break;
}
}
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
break;
}
case 4:
break;
}
}
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
break;
}
case 8:
break;
}
}
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
break;
}
case 16:
break;
}
if (!image->ping)
- SyncImage(image);
+ SyncImage(image,&image->exception);
} else {
#if DEBUG
printf("%s: expanding PHOTO page/image\n", __FUNCTION__);
#endif
if (!image->ping)
- SyncImage(image);
+ SyncImage(image,exception);
/* mmc: ??? Convert PNM pixels to runlength-encoded MIFF packets. */
/* image->colors = */
colors=(XColor *) RelinquishMagickMemory(colors);
XDestroyImage(dps_image);
if (image->storage_class == PseudoClass)
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
/*
Rasterize matte image.
*/
*/
(void) QueryColorCompliance("#000000",AllCompliance,
&histogram_image->background_color,exception);
- (void) SetImageBackgroundColor(histogram_image);
+ (void) SetImageBackgroundColor(histogram_image,exception);
for (x=0; x < (ssize_t) histogram_image->columns; x++)
{
q=GetAuthenticPixels(histogram_image,x,0,1,histogram_image->rows,exception);
ThrowReaderException(CorruptImageError,"ImproperImageHeader");
}
if (image_info->ping == MagickFalse)
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
if (icon_info.bits_per_pixel != 32)
{
/*
if (image->rows == 0)
image->rows=(size_t) floor(draw_info->pointsize+draw_info->stroke_width+
0.5);
- if (SetImageBackgroundColor(image) == MagickFalse)
+ if (SetImageBackgroundColor(image,exception) == MagickFalse)
{
InheritException(exception,&image->exception);
image=DestroyImageList(image);
}
image->columns=1;
image->rows=1;
- if (SetImageBackgroundColor(image) == MagickFalse)
+ if (SetImageBackgroundColor(image,exception) == MagickFalse)
{
- InheritException(exception,&image->exception);
image=DestroyImageList(image);
return((Image *) NULL);
}
if (status == MagickFalse)
break;
}
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
if (EOFBlob(image) != MagickFalse)
ThrowFileException(exception,CorruptImageError,"UnexpectedEndOfFile",
image->filename);
}
}
}
- (void) SyncImage(msl_info->image[n]);
+ (void) SyncImage(msl_info->image[n],&exception);
break;
}
ThrowMSLException(OptionError,"UnrecognizedElement",(const char *) tag);
DefaultResolution;
image->columns=(size_t) (draw_info->affine.sx*image->columns);
image->rows=(size_t) (draw_info->affine.sy*image->rows);
- if (SetImageBackgroundColor(image) == MagickFalse)
+ if (SetImageBackgroundColor(image,exception) == MagickFalse)
{
- InheritException(exception,&image->exception);
image=DestroyImageList(image);
return((Image *) NULL);
}
break;
}
}
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
if (EOFBlob(image) != MagickFalse)
ThrowFileException(exception,CorruptImageError,"UnexpectedEndOfFile",
image->filename);
pattern_image=image;
image=AcquireImage(blob_info,exception);
image->background_color=pattern_image->background_color;
- (void) SetImageBackgroundColor(image);
+ (void) SetImageBackgroundColor(image,exception);
(void) TextureImage(image,pattern_image,exception);
pattern_image=DestroyImage(pattern_image);
}
}
}
if (image->storage_class == PseudoClass)
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
scanline=(unsigned char *) RelinquishMagickMemory(scanline);
if (pcx_colormap != (unsigned char *) NULL)
pcx_colormap=(unsigned char *) RelinquishMagickMemory(pcx_colormap);
if (status == MagickFalse)
break;
}
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
break;
}
case 2:
if (status == MagickFalse)
break;
}
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
break;
}
case 4:
if (status == MagickFalse)
break;
}
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
break;
}
default:
break;
image->columns=1UL*(frame.right-frame.left);
image->rows=1UL*(frame.bottom-frame.top);
- (void) SetImageBackgroundColor(image);
+ (void) SetImageBackgroundColor(image,exception);
break;
}
case 0x12:
}
}
if (image->storage_class == PseudoClass)
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
if (EOFBlob(image) != MagickFalse)
{
ThrowFileException(exception,CorruptImageError,"UnexpectedEndOfFile",
matte=image->matte;
image->matte=MagickFalse;
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
image->matte=matte;
}
png_destroy_read_struct(&ping,&ping_info,&end_info);
ping_pixels=(unsigned char *) RelinquishMagickMemory(ping_pixels);
image->colors=2;
- (void) SetImageBackgroundColor(image);
+ (void) SetImageBackgroundColor(image,exception);
#if defined(PNG_SETJMP_NOT_THREAD_SAFE)
UnlockSemaphoreInfo(ping_semaphore);
#endif
}
}
}
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
}
#if 1 /* Should have already been done above, but glennrp problem P10
image->background_color=mng_background_color;
image->matte=MagickFalse;
image->delay=0;
- (void) SetImageBackgroundColor(image);
+ (void) SetImageBackgroundColor(image,exception);
if (logging != MagickFalse)
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
image->page.x=0;
image->page.y=0;
image->background_color=mng_background_color;
- (void) SetImageBackgroundColor(image);
+ (void) SetImageBackgroundColor(image,exception);
if (logging != MagickFalse)
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
" Inserted transparent background layer, W=%.20g, H=%.20g",
image->page.y=mng_info->clip.top;
image->background_color=mng_background_color;
image->matte=MagickFalse;
- (void) SetImageBackgroundColor(image);
+ (void) SetImageBackgroundColor(image,exception);
if (logging != MagickFalse)
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
#endif
if (image->matte != MagickFalse)
- (void) SetImageBackgroundColor(large_image);
+ (void) SetImageBackgroundColor(large_image,exception);
else
{
large_image->background_color.alpha=OpaqueAlpha;
- (void) SetImageBackgroundColor(large_image);
+ (void) SetImageBackgroundColor(large_image,exception);
if (magn_methx == 4)
magn_methx=2;
image->columns=1;
image->rows=1;
image->colors=2;
- (void) SetImageBackgroundColor(image);
+ (void) SetImageBackgroundColor(image,exception);
image->page.width=1;
image->page.height=1;
image->page.x=0;
image->matte=MagickFalse;
if (image_info->ping == MagickFalse)
- (void) SetImageBackgroundColor(image);
+ (void) SetImageBackgroundColor(image,exception);
mng_info->image_found++;
}
(mng_info->write_png_colortype != 0 &&
mng_info->write_png_colortype != 4)))
{
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
image->storage_class = DirectClass;
}
the colors in the colormap. This code syncs the RGB values.
*/
if (image->depth <= 8 && image->taint && image->storage_class == PseudoClass)
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
#if (MAGICKCORE_QUANTUM_DEPTH == 8)
if (image->depth > 8)
else
(void) SetImageType(image,TrueColorType,exception);
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
}
if (mng_info->write_png32)
else
(void) SetImageType(image,TrueColorType,exception);
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
}
value=GetImageOption(image_info,"png:bit-depth");
image->depth=psd_info.depth;
image->columns=psd_info.columns;
image->rows=psd_info.rows;
- if (SetImageBackgroundColor(image) == MagickFalse)
+ if (SetImageBackgroundColor(image,exception) == MagickFalse)
{
InheritException(exception,&image->exception);
image=DestroyImageList(image);
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
" setting up new layer image");
if (image_info->ping != MagickFalse)
- (void) SetImageBackgroundColor(layer_info[i].image);
+ (void) SetImageBackgroundColor(layer_info[i].image,exception);
layer_info[i].image->compose=
PSDBlendModeToCompositeOperator(layer_info[i].blendkey);
if (layer_info[i].visible == MagickFalse)
break;
}
}
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
}
else
{
break;
}
}
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
}
iris_pixels=(unsigned char *) RelinquishMagickMemory(iris_pixels);
if (EOFBlob(image) != MagickFalse)
break;
}
watermark=DestroyImage(watermark);
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
return(GetFirstImageInList(image));
}
\f
}
}
if (image->storage_class == PseudoClass)
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
sun_pixels=(unsigned char *) RelinquishMagickMemory(sun_pixels);
if (EOFBlob(image) != MagickFalse)
{
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
}
#endif
- (void) SetImageBackgroundColor(image);
+ (void) SetImageBackgroundColor(image,exception);
#if defined(MAGICKCORE_CAIRO_DELEGATE)
cairo_surface=cairo_image_surface_create_for_data(pixels,
CAIRO_FORMAT_ARGB32,image->columns,image->rows,4*image->columns);
ThrowReaderException(OptionError,"MustSpecifyAnImageName");
image->matte=tile_image->matte;
if (image->matte != MagickFalse)
- (void) SetImageBackgroundColor(image);
+ (void) SetImageBackgroundColor(image,exception);
(void) CopyMagickString(image->filename,image_info->filename,MaxTextExtent);
if (LocaleCompare(tile_image->magick,"PATTERN") == 0)
{
ThrowReaderException(CorruptImageError,"ImproperImageHeader");
}
if (image->storage_class == PseudoClass)
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
tim_pixels=(unsigned char *) RelinquishMagickMemory(tim_pixels);
if (EOFBlob(image) != MagickFalse)
{
/*
Annotate the text image.
*/
- (void) SetImageBackgroundColor(image);
+ (void) SetImageBackgroundColor(image,exception);
draw_info=CloneDrawInfo(image_info,(DrawInfo *) NULL);
(void) CloneString(&draw_info->text,image_info->filename);
(void) FormatLocaleString(geometry,MaxTextExtent,"0x0%+ld%+ld",(long) page.x,
image->next->rows=image->rows;
image=SyncNextImageInList(image);
(void) CopyMagickString(image->filename,filename,MaxTextExtent);
- (void) SetImageBackgroundColor(image);
+ (void) SetImageBackgroundColor(image,exception);
status=SetImageProgress(image,LoadImagesTag,TellBlob(image),
GetBlobSize(image));
if (status == MagickFalse)
ThrowReaderException(CorruptImageError,"ImproperImageHeader");
image->colorspace=(ColorspaceType) type;
(void) ResetMagickMemory(&pixel,0,sizeof(pixel));
- (void) SetImageBackgroundColor(image);
+ (void) SetImageBackgroundColor(image,exception);
range=GetQuantumRange(image->depth);
for (y=0; y < (ssize_t) image->rows; y++)
{
}
viff_pixels=(unsigned char *) RelinquishMagickMemory(viff_pixels);
if (image->storage_class == PseudoClass)
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
if (EOFBlob(image) != MagickFalse)
{
ThrowFileException(exception,CorruptImageError,"UnexpectedEndOfFile",
if (status == MagickFalse)
break;
}
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
if (EOFBlob(image) != MagickFalse)
ThrowFileException(exception,CorruptImageError,"UnexpectedEndOfFile",
image->filename);
break;
}
data=(unsigned char *) RelinquishMagickMemory(data);
- (void) SyncImage(image);
+ (void) SyncImage(image,exception);
(void) CloseBlob(image);
return(GetFirstImageInList(image));
}
/* clear the image based on the layer opacity */
outLayer->image->background_color.alpha=
ScaleCharToQuantum((unsigned char) (255-outLayer->alpha));
- (void) SetImageBackgroundColor(outLayer->image);
+ (void) SetImageBackgroundColor(outLayer->image,exception);
/* set the compositing mode */
outLayer->image->compose = GIMPBlendModeToCompositeOperator( outLayer->mode );
else
if (image_type == GIMP_INDEXED)
ThrowReaderException(CoderError,"ColormapTypeNotSupported");
- (void) SetImageBackgroundColor(image);
+ (void) SetImageBackgroundColor(image,exception);
image->matte=MagickTrue;
/*
Read properties.