From 47eb714166cbd26f06424b166f2fcb4a48953a38 Mon Sep 17 00:00:00 2001 From: cristy Date: Sun, 16 Nov 2014 00:20:47 +0000 Subject: [PATCH] --- MagickCore/annotate.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/MagickCore/annotate.c b/MagickCore/annotate.c index 1316c8cd1..13a813c88 100644 --- a/MagickCore/annotate.c +++ b/MagickCore/annotate.c @@ -1293,7 +1293,13 @@ static MagickBooleanType RenderFreetype(Image *image,const DrawInfo *draw_info, if (image->storage_class != DirectClass) (void) SetImageStorageClass(image,DirectClass,exception); if (image->alpha_trait == UndefinedPixelTrait) - (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception); + if ((draw_info->fill.alpha != OpaqueAlpha) || + ((draw_info->fill_pattern != (Image *) NULL) && + (draw_info->fill_pattern->alpha_trait != UndefinedPixelTrait)) || + (draw_info->stroke.alpha != TransparentAlpha) || + ((draw_info->stroke_pattern != (Image *) NULL) && + (draw_info->stroke_pattern->alpha_trait != UndefinedPixelTrait))) + (void) SetImageAlphaChannel(image,OpaqueAlphaChannel,exception); } direction=1.0; if (draw_info->direction == RightToLeftDirection) -- 2.40.0