Hi @Les ,
Point uses integer coordinates, but PointF uses floating coordinates.
You need to use PointF parameters in Graphics.DrawLine function in your case.
g.DrawLine(Pens.LightGray, New PointF(x, -y), New PointF(x, y))
Hope it could be helpful.
Best Regards,
Xingyu Zhao
*
If the answer 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.