MagickBooleanType
status;
+ PixelInfo
+ background;
+
ssize_t
y;
if ((image->background_color.alpha_trait == BlendPixelTrait) &&
(image->alpha_trait != BlendPixelTrait))
(void) SetImageAlpha(image,OpaqueAlpha,exception);
+ background=image->background_color;
+ if (image->colorspace == CMYKColorspace)
+ ConvertRGBToCMYK(&background);
/*
Set image background color.
*/
}
for (x=0; x < (ssize_t) image->columns; x++)
{
- SetPixelInfoPixel(image,&image->background_color,q);
+ SetPixelInfoPixel(image,&background,q);
q+=GetPixelChannels(image);
}
if (SyncCacheViewAuthenticPixels(image_view,exception) == MagickFalse)