From: Cristy Date: Tue, 13 Feb 2018 00:33:25 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.7-23~48 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d73c6648da1953a5db37e7b538e44549f0e76e7;p=imagemagick ... --- diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 6f6f6860b..eac32d9ff 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -2052,7 +2052,7 @@ MagickExport MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info, { GetNextToken(q,&q,extent,token); factor=strchr(token,'%') != (char *) NULL ? 0.01 : 1.0; - graphic_context[n]->fill.alpha=(MagickRealType) (QuantumRange- + graphic_context[n]->fill_alpha=(MagickRealType) (QuantumRange- ClampToQuantum((MagickRealType) QuantumRange*(1.0-factor* StringToDouble(token,&next_token)))); if (token == next_token) @@ -2732,7 +2732,7 @@ MagickExport MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info, { GetNextToken(q,&q,extent,token); factor=strchr(token,'%') != (char *) NULL ? 0.01 : 1.0; - graphic_context[n]->stroke.alpha=(MagickRealType) (QuantumRange- + graphic_context[n]->stroke_alpha=(MagickRealType) (QuantumRange- ClampToQuantum((MagickRealType) QuantumRange*(1.0-factor* StringToDouble(token,&next_token)))); if (token == next_token)