SetPixelChannel(shade_image,channel,center[i],q);
continue;
}
+ if ((traits & UpdatePixelTrait) == 0)
+ {
+ SetPixelChannel(shade_image,channel,center[i],q);
+ continue;
+ }
if (gray != MagickFalse)
{
SetPixelChannel(shade_image,channel,ClampToQuantum(shade),q);
PixelChannel channel=GetPixelChannelChannel(image,i);
SetPixelChannelTraits(image,channel,
GetChannelBit(channel_mask,channel) == 0 ? CopyPixelTrait :
- (image->alpha_trait != UndefinedPixelTrait) &&
- (channel != AlphaPixelChannel) ? (PixelTrait)
+ (image->alpha_trait == BlendPixelTrait) &&
+ (channel != AlphaPixelChannel) ? (PixelTrait)
(UpdatePixelTrait | BlendPixelTrait) : UpdatePixelTrait);
}
if (image->storage_class == PseudoClass)
SetPixelChannelTraits(image,IndexPixelChannel,CopyPixelTrait);
- if (image->alpha_trait == UndefinedPixelTrait)
+ if (image->alpha_trait != BlendPixelTrait)
SetPixelChannelTraits(image,AlphaPixelChannel,image->alpha_trait);
if (image->read_mask != MagickFalse)
SetPixelChannelTraits(image,ReadMaskPixelChannel,CopyPixelTrait);