<div dir="ltr">Absolutely he should make sure his code is not drawing the lines with some other color, and then attempting to "erase" them by drawing them again with the background color. This will produce visible and unavoidable artifacts in the antialiased edges.<div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Apr 26, 2024 at 11:27 AM Uli Schlachter <<a href="mailto:psychon@znc.in">psychon@znc.in</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
Am 20.04.24 um 18:38 schrieb Richard Rosenman:<br>
> Can you see the faint greenish outline within the yellow:<br>
<br>
actually, I cannot.<br>
<br>
However, I looked at the individual color channels of the image and <br>
noticed that the blue channel is completely empty except for some <br>
outline around the lines. This outline "reaches into" the upper part of <br>
the image. I guess this is what you are talking about.<br>
<br>
I don't really know what causes this. As others in the thread wrote, <br>
this might be some inaccuracies somewhere in the code. However, to me it <br>
seems more like the lines were drawn against a transparent background <br>
with antialiasing. The result would look good against a transparent <br>
background, but not when later drawn against a background of the same color.<br>
<br>
But this is just a guess.<br>
<br>
If my guess is correct, perhaps you can somehow re-arranges things to <br>
draw these lines directly against their later background.<br>
<br>
Another alternative would be to use "poor man's antialiasing": Draw in a <br>
higher resolution without antialiasing and scale down later.<br>
<br>
If you happen to have a self-contained C program that reproduces this <br>
problem, I might be able to dig deeper. However, I am not sure how <br>
helpful the result be to you in the near future.<br>
<br>
Cheers,<br>
Uli<br>
-- <br>
If you have a problem, and you use threads to solve it, then you have <br>
two problems and four of them happen randomly in a way you cannot <br>
reproduce but your users suffer.<br>
-- pq in #wayland<br>
<br>
</blockquote></div>