Hello,
Welcome to our Microsoft Q&A platform!
When you draw a line that need to suitable for different resolution, please do not set the specific value when you drawLine.
Specific value should be interpreted as SKImageInfo.Width
or Height
's proportional.
such as
float xText = info.Width / 2;
float xLine1 = info.Width/ 10;
float xLine2 = info.Width - xLine1;
float y = thickLinePaint.FontSpacing;
thickLinePaint.StrokeCap = SKStrokeCap.Square;
// canvas.DrawLine(150, positionY, 1300, positionY, thickLinePaint);
canvas.DrawLine(xLine1, y, xLine2, y, thickLinePaint);
Best Regards,
Leon Lu
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.