break;
mask_alpha=QuantumScale*GetPixelWriteMask(image,p);
if (fabs(mask_alpha) >= MagickEpsilon)
- for (i=0; i < (ssize_t) image->number_channels; i++)
{
- PixelChannel channel = GetPixelChannelChannel(image,i);
- PixelTrait traits = GetPixelChannelTraits(image,channel);
- if ((traits & UpdatePixelTrait) == 0)
- continue;
- q[i]=ClampToQuantum(MagickOver_((double) p[i],mask_alpha*
- GetPixelAlpha(image,p),(double) q[i],(double)
- GetPixelAlpha(image,q)));
+ for (i=0; i < (ssize_t) image->number_channels; i++)
+ {
+ PixelChannel channel = GetPixelChannelChannel(image,i);
+ PixelTrait traits = GetPixelChannelTraits(image,channel);
+ if ((traits & UpdatePixelTrait) == 0)
+ continue;
+ q[i]=ClampToQuantum(MagickOver_((double) p[i],mask_alpha*
+ GetPixelAlpha(image,p),(double) q[i],(double)
+ GetPixelAlpha(image,q)));
+ }
+ SetPixelAlpha(image,GetPixelAlpha(image,p),q);
}
p+=GetPixelChannels(image);
q+=GetPixelChannels(image);
(void) LogMagickEvent(DrawEvent,GetMagickModule(),"begin draw-image");
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
+ if (image->alpha_trait == UndefinedPixelTrait)
+ {
+ status=SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
+ if (status == MagickFalse)
+ return(status);
+ }
primitive=(char *) NULL;
if (*draw_info->primitive != '@')
primitive=AcquireString(draw_info->primitive);
/*
Draw polygon or line.
*/
- if (image->alpha_trait == UndefinedPixelTrait)
- (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception);
start_y=(ssize_t) ceil(bounds.y1-0.5);
stop_y=(ssize_t) floor(bounds.y2+0.5);
#if defined(MAGICKCORE_OPENMP_SUPPORT)
if (SetImageStorageClass(clip_mask,DirectClass,exception) == MagickFalse)
return(MagickFalse);
}
- if (inside != MagickFalse)
+ if (inside == MagickFalse)
(void) NegateImage(clip_mask,MagickFalse,exception);
(void) FormatLocaleString(clip_mask->magick_filename,MagickPathExtent,
"8BIM:1999,2998:%s\nPS",pathname);
MAGICK_VERSION=7.0.7-33
-MAGICK_GIT_REVISION=14318:9de21a759:20180515
+MAGICK_GIT_REVISION=14321:8e0117484:20180515
# Substitute library versioning