I have an array of Point variables. When drawing using Graphics.DrawLine they create the expected image. My problem is that 0,0 is actually the center of the image (and not the top left of my canvas as expected). My X and Y coordinates at points may contain negative numbers.
When I try to draw this on my Image , I, of course, get 1/4 of the total image, since the remainder is drawn outside my canvas. How to set up this picture on my canvas?
I know the size of the image I want to draw. I know where 0,0 (width / 2, height / 2).
I suppose I can translate every Point , but that seems difficult for that.
source share