Pixelated Line

20 views
Skip to first unread message

Priya

unread,
Oct 14, 2025, 9:03:29 AM (5 days ago) Oct 14
to skia-discuss
Hi 
    I am trying to draw a slanted line using skia's drawLine in my windows machine. For system scale factor 1 and stroke width 1, the line looks pixelated. If I increase the stroke width to 1.5 or 2, the line is not pixelated . What could be the reason? I have also tried setting antialias property to true.
    I tried the same case in fiddle, where I got the same result for raster image, but the line was smooth for GPU image.

CPU image :

Screenshot 2025-10-08 112341.png

TIA.
Reply all
Reply to author
Forward
0 new messages