{
status&=QueryColorCompliance(token,AllCompliance,
&graphic_context[n]->fill,exception);
- graphic_context[n]->fill.alpha=graphic_context[n]->fill_alpha;
+ if (graphic_context[n]->fill_alpha != OpaqueAlpha)
+ graphic_context[n]->fill.alpha=graphic_context[n]->fill_alpha;
}
break;
}
if (token == next_token)
ThrowPointExpectedException(token,exception);
graphic_context[n]->fill_alpha*=opacity;
- graphic_context[n]->fill.alpha=graphic_context[n]->fill_alpha;
+ if (graphic_context[n]->fill_alpha != OpaqueAlpha)
+ graphic_context[n]->fill.alpha=graphic_context[n]->fill_alpha;
break;
}
if (LocaleCompare("fill-rule",keyword) == 0)
if (token == next_token)
ThrowPointExpectedException(token,exception);
graphic_context[n]->fill_alpha*=opacity;
- graphic_context[n]->fill.alpha=graphic_context[n]->fill_alpha;
+ if (graphic_context[n]->fill_alpha != OpaqueAlpha)
+ graphic_context[n]->fill.alpha=graphic_context[n]->fill_alpha;
graphic_context[n]->stroke_alpha*=opacity;
- graphic_context[n]->stroke.alpha=graphic_context[n]->stroke_alpha;
+ if (graphic_context[n]->stroke_alpha != OpaqueAlpha)
+ graphic_context[n]->stroke.alpha=graphic_context[n]->stroke_alpha;
break;
}
status=MagickFalse;
{
status&=QueryColorCompliance(token,AllCompliance,
&graphic_context[n]->stroke,exception);
- graphic_context[n]->stroke.alpha=
- graphic_context[n]->stroke_alpha;
+ if (graphic_context[n]->stroke_alpha != OpaqueAlpha)
+ graphic_context[n]->stroke.alpha=
+ graphic_context[n]->stroke_alpha;
}
break;
}
if (token == next_token)
ThrowPointExpectedException(token,exception);
graphic_context[n]->stroke_alpha*=opacity;
- graphic_context[n]->stroke.alpha=graphic_context[n]->stroke_alpha;
+ if (graphic_context[n]->stroke_alpha != OpaqueAlpha)
+ graphic_context[n]->stroke.alpha=graphic_context[n]->stroke_alpha;
break;
}
if (LocaleCompare("stroke-width",keyword) == 0)