return((Image *) NULL);
if (expression == (const char *) NULL)
return(destination_image);
+ status=SetImageStorageClass(destination_image,DirectClass,exception);
+ if (status == MagickFalse)
+ {
+ destination_image=GetLastImageInList(destination_image);
+ return((Image *) NULL);
+ }
destination_channel=RedPixelChannel;
channel_mask=UndefinedChannel;
pixel=0.0;
(void) SetImageColorspace(destination_image,GRAYColorspace,
exception);
}
- status=SetImageStorageClass(destination_image,DirectClass,exception);
- if (status == MagickFalse)
- {
- destination_image=GetLastImageInList(destination_image);
- return((Image *) NULL);
- }
canvas=CloneImage(source_image,0,0,MagickTrue,exception);
if (canvas == (Image *) NULL)
{
}
AppendImageToList(&destination_image,canvas);
destination_image=GetLastImageInList(destination_image);
+ status=SetImageStorageClass(destination_image,DirectClass,exception);
+ if (status == MagickFalse)
+ {
+ destination_image=GetLastImageInList(destination_image);
+ return((Image *) NULL);
+ }
GetNextToken(p,&p,MagickPathExtent,token);
channels=0;
destination_channel=RedPixelChannel;
}
}
destination_channel=(PixelChannel) i;
- if (i >= GetPixelChannels(destination_image))
+ if (i >= (ssize_t) GetPixelChannels(destination_image))
(void) SetPixelMetaChannels(destination_image,(size_t) (
destination_channel-GetPixelChannels(destination_image)+1),
exception);
break;
case AlphaPixelChannel:
{
- if (image->colorspace != UndefinedColorspace)
- destination_image->alpha_trait=BlendPixelTrait;
+ destination_image->alpha_trait=BlendPixelTrait;
break;
}
case ReadMaskPixelChannel:
(void) SetPixelMetaChannels(destination_image,0,exception);
(void) SetImageColorspace(destination_image,GRAYColorspace,exception);
}
- status=SetImageStorageClass(destination_image,DirectClass,exception);
- if (status == MagickFalse)
- {
- destination_image=GetLastImageInList(destination_image);
- return((Image *) NULL);
- }
return(GetFirstImageInList(destination_image));
}
\f