assert(image->signature == MagickCoreSignature);
if (image->debug != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
- assert(composite!= (Image *) NULL);
+ assert(composite != (Image *) NULL);
assert(composite->signature == MagickCoreSignature);
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
if (traits == UndefinedPixelTrait)
continue;
if ((source_traits == UndefinedPixelTrait) &&
- (((compose != CopyAlphaCompositeOp) &&
- (compose != ChangeMaskCompositeOp)) ||
- (channel != AlphaPixelChannel)))
+ (channel != AlphaPixelChannel))
continue;
- /*
- Sc: source color.
- Dc: canvas color.
- */
- Sc=(MagickRealType) GetPixelChannel(source_image,channel,p);
- Dc=(MagickRealType) q[i];
- if ((traits & CopyPixelTrait) != 0)
- {
- /*
- Copy channel.
- */
- q[i]=Sc;
- continue;
- }
if (channel == AlphaPixelChannel)
{
/*
ClampToQuantum(pixel);
continue;
}
+ /*
+ Sc: source color.
+ Dc: canvas color.
+ */
+ Sc=(MagickRealType) GetPixelChannel(source_image,channel,p);
+ Dc=(MagickRealType) q[i];
+ if ((traits & CopyPixelTrait) != 0)
+ {
+ /*
+ Copy channel.
+ */
+ q[i]=Sc;
+ continue;
+ }
/*
Porter-Duff compositions:
Sca: source normalized color multiplied by alpha.