MagickBooleanType
status;
- PixelInfo
- pixel;
-
ssize_t
y;
assert(image->signature == MagickSignature);
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
- if (image->background_color.alpha != OpaqueAlpha)
- image->matte=MagickTrue;
/*
Set image background color.
*/
status=MagickTrue;
- pixel=image->background_color;
- pixel.black=0;
image_view=AcquireCacheView(image);
for (y=0; y < (ssize_t) image->rows; y++)
{
}
for (x=0; x < (ssize_t) image->columns; x++)
{
- SetPixelInfoPixel(image,&pixel,q);
+ SetPixelInfoPixel(image,&image->background_color,q);
q+=GetPixelChannels(image);
}
if (SyncCacheViewAuthenticPixels(image_view,exception) == MagickFalse)
return((Image *) NULL);
coalesce_image->page=bounds;
coalesce_image->dispose=NoneDispose;
- coalesce_image->matte=MagickTrue;
- coalesce_image->background_color.matte=MagickTrue;
- coalesce_image->background_color.alpha=(Quantum) TransparentAlpha;
(void) SetImageBackgroundColor(coalesce_image,exception);
/*
Coalesce rest of the images.