The DrawLine method is not drawing all the points between the starting (x,y) point and the ending (x2,y2) points. For example you can create a new WriteableBitmap having (10,10) size and try to draw the line from (0,0) to (9,9). The latest point (9,9) will not be affected by the DrawLine method. I suspect there is a boundary check which stops drawing before the ending point is reached.
↧