You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix #43828: broken transparency of imagearc for truecolor in blendingmode
No pixel of a filled arc must ever be drawn multiple times. Otherwise we get artifacts regarding transparency. That happens with the current implementation of gdImageFilledArc() unless gdChord or gdNoFill are set. When gdPie is set, however, the filled arc is drawn in wedges, which are polygons of three points, and so some overlap is natural. To resolve the issue, we stick with the current algorithm of calculating the wedges, but instead of drawing each polygon separately, we put the relevant points in a large array, and draw a single polygon. That also is supposed to improve the performance considerably. Note that this modification will change the results when gdImageSetStyle() or gdImageSetBrush() are used, but we believe that this modification is also an improvement in this regard, even though it still might not make much sense to use these functions with gdImageFilledArc(). The respective fix for libgd is <libgd/libgd@e7e20d6>.
0 commit comments